# Assignment

• December 7th, 2012, 03:12 PM
marty_
Assignment
I am really struggling with a programming assignment was wondering can any one on here help me
• December 7th, 2012, 03:13 PM
Norm
Re: Assignment
You need to post some questions and possibly some code to get help with the assignment.
• December 7th, 2012, 03:21 PM
marty_
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.
• December 7th, 2012, 03:26 PM
Norm
Re: Assignment
Quote:

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.