Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. ## Assignment

I am really struggling with a programming assignment was wondering can any one on here help me

2. ## Re: Assignment

You need to post some questions and possibly some code to get help with the assignment.

3. ## Re: Assignment

Would you like to do the assingment for me if i give you the assignment brief? lol

--- Update ---

A weather station in Florida is required to produce statistics, including charts, for the average hours of sunshine for each month in 2009, 2010 and 2011.

You are required to design and write a program to read each month’s average sunshine in hours for the three years, generate a histogram for each year and the statistics. The details are given below:

• For each year calculate
o The average hours of sunshine;
o The month in each year with the greatest average amount of sunshine and the actual amount; and
o The month in each year with the least average amount of sunshine and the actual amount.

• Over the three years
o The average of the sunshine figures for each month.

Your program should include the following methods:-

 A method enterValues () which takes an array of doubles as a parameter to hold the sunshine figures for one year. It should read the hours of sunshine from the keyboard into the array.

 A method calculateandDisplayResults() which takes an array of doubles holding the sunshine hours for one year and displays the statistics for that year. This method should call other value methods:
 one to return the average sunshine for the year
 one to return the position in the array of the month with the highest average hours of sunshine
 one to return the position in the array of the month with the lowest average hours of sunshine.

 A method monthlyResults () which will take three arrays of doubles representing the hours of sunshine for each year and display the average hours of sunshine for each month.

 A method printChart() which takes an array of doubles as a parameter holding the hours of sunshine for one year and prints a histogram for that year.

4. ## Re: Assignment

Would you like to do the assingment for me if i give you the assignment brief?
Sorry, we don't do assignments here. We try to help students get their code to work.
Post you code and any questions you have about it.