Write a program that lets the user enter the total rainfallfor each of 12 months
ID: 3616576 • Letter: W
Question
Write a program that lets the user enter the total rainfallfor each of 12 months into an array of doubles. The program shouldcalculate and display thte total rainfall for the year, the aveagemontly rainfall, and the months with the highest and lowestamounts. Input Validation: do not accept negative numbers for monthlyrainfall figues.. I want to see output. I don't know how? Write a program that lets the user enter the total rainfallfor each of 12 months into an array of doubles. The program shouldcalculate and display thte total rainfall for the year, the aveagemontly rainfall, and the months with the highest and lowestamounts. Input Validation: do not accept negative numbers for monthlyrainfall figues.. I want to see output. I don't know how?Explanation / Answer
please rate - thanks #include using namespace std; int main() {stringmonth[12]={"January","February","March","April","May","June","July", "August","September","October","November","December"}; int min,max,i; double num[12]; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.