Question: Write a program that analyzes a year's worth of rainfall data. The program should accept the total rainfall for each of 12 months from the


Write a program that analyzes a year's 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, driest Month, andwettestMonth.An array containing the string for each month's 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 thefollowing:Annual Rain Report for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
