Assignment Repetition Structures
- Due Oct 8, 2024 by 11:59pm
- Points 100
- Submitting a text entry box or a file upload
- Available until Nov 4, 2024 at 5am
Average Rainfall
Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate 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.
Valid input check - your input the user must enter all positive numbers.
Submit your Pseudo-Code or Flow Chart for the Design of the Program
Submit your Actual Code for the Program