Question:

Write a program that analyzes a year's worth of rainfall

Last updated: 7/17/2022

Write a program that analyzes a year's worth of rainfall

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, and wettestMonth. 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 the following: Annual Rain Report for <enter your county name here> 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.