Average Rainfall Calculator C++ Code

Average Rainfall Calculator C++ Code

This code will calculate the Average Rainfall based on the entered values.

Average Rainfall calculator. The user enters a number of years followed by each monthly average rainfall. The code will calculate the average rainfall using the entered data.

The program asks the user to enter a number of years. For each year, it will ask for the average rainfall for the month. Finally, it will calculate and print the total average using the entered values.

While this program is designed to calculate the average rainfall for a specified amount of year, it can be updated to calculate weekly or monthly rainfall with a few tweaks.