Question: Make a RAPTOR program that analyzes a year's worth of rainfall data. In addition to main, the program should have a getData function that accepts
Make a RAPTOR program that analyzes a year's worth of rainfall data. In addition to main, the program should have a getData function that accepts the total rainfall for each of months from the user, and stores it in a double array. It should also have four valuereturning functions that compute and return to main the totalRainfall, averageRainfall, driestRainfall, and wettestMonth. These last two functions return the number of the month with the lowest and highest rainfall amounts, not the amount of rain that fell those months. Notice that this month number can be used to obtain the amount of rain that fell those months. This information should be used either by main or by a displayReport function called by main to print a summary rainfall report similar to the following:
Rain Report for Neversnows County
Total rainfall : inches
Average monthly rainfall : inches
The least rain fell in January with inches.
The most rain fell in April with inches.
Input validation: Do not accept rainfall amounts less than
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
