Write a program that analyzes a year's worth of rainfall data. The program should accept...
90.2K
Verified Solution
Link Copied!
Question
Basic Math
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 CountyTotal rainfall: 23.19 inchesAverage monthly rainfall: 1.93 inchesThe least rain fell in January with 0.24 inches.The most rain fell in April with 4.29 inches.
Answer & Explanation
Solved by verified expert
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
Unlimited Question Access with detailed Answers
Zin AI - 3 Million Words
10 Dall-E 3 Images
20 Plot Generations
Conversation with Dialogue Memory
No Ads, Ever!
Access to Our Best AI Platform: Zin AI - Your personal assistant for all your inquiries!