Question: this is c++ language Average Rainfall Write a program that is nested loops to collect data and cakulate the average rainfall over a period of

 this is c++ language Average Rainfall Write a program that is

this is c++ language

Average Rainfall Write a program that is nested loops to collect data and cakulate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop williterate one for each year. The inner loop williterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations, the program should display the number of months, the total inches of rainfall, and the average rainfall per month for the entire period. Input Validation: Do not accept a number less than 1 for the number of years. Do not accept negative numbers for the monthly rainfall Build the Flow Chart b. Implement a version with the outer loop with a do/while loop and the inner loop with a for loop E Implement a version with the outer loop with a for loop and the inner loop with a while loop

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!