-
Help with Arrays
I need a lot of help with java. I am terrible. Someone please help me with the requirements and code for this project. PLEASE!!!!!!
1. Write a class named RainfallCollection, that can be used to create a collection of 12 monthly rainfall measurements
Following instance methods required:
-Method that will calculate and return the total of the rainfall measurements.
-Method that will calculate and return the average of the rainfall measurement for the year.
-Method that will calculate and return the minimum of the monthly rainfall measurements.
-Method that will calculate and return the maximum of the monthly rainfall measurements.
-Method that will return the month with the least amount of rain.
-Method that will return the month with the most amount of rain
2. Write a class named YearlyRainfall that will:
-Instantiate a RainfallCollection object.
-Populate the RainfallCollection with data for each monthly measurement.
-Menu driven loop that allows the user the following options:
-Display the total of the rainfall measurements
-Display the average rainfall measurement.
-Display the minimum monthly rainfall measurement.
-Display the maximum monthly rainfall measurement.
-Display the month with the least amount of rain.
-Display the month with the most amount of rain.
-Exit
Its written as 1 and 2 on our requirements but I'm not sure if they are supposed to go in the same program? Please help!
-
Re: Help with Arrays
-
Re: Help with Arrays
cheercutie, usually we do not do homework for members, if they haven't made any effort themselves. If you can show us your progress thus far and with what and where you are struggling, we can assist
-
Re: Help with Arrays
Why dont you try yourself..??