Menu

[solved]-Write Python Program Allows User Enter Total Rainfall 12 Months Array Program Calculate Fo Q39032671

Write a PYTHON program that allows the user to enter the totalrainfall for each of 12 months into an array. The program shouldthen 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 ofwhich month names go to which rainfall values. You may not hardcode the month names into the print statements for the last twobullet points

Data:

January      7.9 inches

February    10.1 inches

March         3.4inches

April          6.7 inches

May          8.9 inches

June          9.4inches

July          5.9 inches

August       4.1 inches

September 3.7 inches

October     5.1 inches

November 7.2 inches

December 8.3 inches

Expert Answer


Answer to Write a PYTHON program that allows the user to enter the total rainfall for each of 12 months into an array. The program… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *