-
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!
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
|