SOLVED:Rainfall Program solution

15.00 $

Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . zip solution files instantly, after Payment


5/5 - (2 votes)

Write a RainFall program 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 number of the month with the most rain (not the amount)

* The number of the month with the least rain (not the amount)

Demonstrate program. Input Validation should not allow negative numbers.