Question: Write a console application that prompts users to input the amount of rainfall, in inches, each of the twelve (12) months of the year has

Write a console application that prompts users to input the amount of rainfall, in inches, each of the twelve (12) months of the year has received; user input should be validated as being numerical strings and characters should not be accepted.

Once data has been gathered for all twelve (12) months, print the following information to screen:

total rainfall for the year

average monthly rainfall

highest month of rainfall (with data)

lowest month of rainfall (with data)

A twelve (12) element double array should be used to receive and process rainfall data.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!