Advertisement
akosiraff

RainFall Program1 and Program2 JAVA

Jul 23rd, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/rainfall-java/
  3. 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:
  4. the total rainfall for the year
  5. the average monthly rainfall
  6. the month with most rain
  7. the month with least rain
  8. Demonstrate the class in a complete program. (Do not accept negative numbers for monthly rainfall figures)
  9. 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.
  10.  
  11.  
  12. Download: http://solutionzip.com/downloads/rainfall-java/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement