Question: need help with C++ Write a program that analyzes a years worth of rainfall data. The program should accept the total rainfall for each of
need help with C++
Write a program that analyzes a years worth of rainfall data. The program should accept the total rainfall for each of 12 months from the user and store it in an array of doubles. The program should then compute the totalRainfall, averageRainfall, driestMonth, and wettestMonth.
An array containing the string for each months name should also be created. The index values of both arrays should correlate to the same month - this will allow you to utilize the array of strings when displaying the names of each month when prompting for the rainfall amounts and then when displaying the statistics.
This information should be used by main to print a summary rainfall report similar to the following:
Annual Rain Report for
Total rainfall: 23.19 inches
Average monthly rainfall: 1.93 inches
The least rain fell in January with 0.24 inches.
The most rain fell in April with 4.29 inches.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
