Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/rainfall-java/
- Write A Rainfall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following:
- the total rainfall for the year
- the average monthly rainfall
- the month with most rain
- the month with least rain
- Demonstrate the class in a complete program. (Do not accept negative numbers for monthly rainfall figures)
- Modify the program 1 so that it will handle multiple years (the actual number specified at run time by the user). In addition to the output specified in program 1 for each year, program 2 should determine the year with the most and least rainfall.
- Download: http://solutionzip.com/downloads/rainfall-java/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement