Write a program that allows the user to enter the total rainfall for each of 12 months into an array. The program should then calculate the following metrics from the array: The total rainfall for the year The average monthly rainfall The month with the highest rainfall amount The month with the lowest rainfall amount Please note, you will need to devise a way to keep track of which month names go to which rainfall values. You may not hard code the month names into the print statements for the last two bullet points

Solved
Show answers

Ask an AI advisor a question