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 County

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

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!