Question: Java homework, can someone help me with this: Use at least two methods in the program. Use an array parameter in a method that uses

Java homework, can someone help me with this:

Use at least two methods in the program. Use an array parameter in a method that uses call by reference when assigning values to the array.

rainfall Write a program that reads up to 52 double values of weekly rainfall for a given city. The program then uses a method to input less than 52 values and returns the number entered, with the following header: public static int getRainData(double rainFall[]) The program uses a method to calculate the average rainfall with the following header: public static double calcAverage(double rainFall[], int numWeeks) The output of the program displays all 52 rainfall values followed by the amount above or below the average for each week. Finally, the program displays the smallest and largest rainfall values for the year.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!