-
November 12th, 2013, 06:16 PM
#1
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!
-
November 13th, 2013, 12:23 AM
#2
-
November 13th, 2013, 02:50 AM
#3
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
-
November 19th, 2013, 05:03 AM
#4
Re: Help with Arrays
Why dont you try yourself..??
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|