Question: CODE IN PYTHON BEFORE YOU BEGIN CODING, MODEL YOUR PROGRAM LOGIC USING EITHER A FLOWCHART OR PSUEDOCODE Create a program that prompts the user to

CODE IN PYTHON
BEFORE YOU BEGIN CODING, MODEL YOUR PROGRAM LOGIC USING EITHER A FLOWCHART OR PSUEDOCODE
Create a program that prompts the user to enter total rainfall for each of 12 months into a list.
The program should compute and display total rainfall for the year, average monthly rainfall, and
the names of the months that had the highest and lowest monthly amounts.
a. If there is a tie for either highest or lowest monthly rainfall amount, you may display any
of the tied months.
b. You may either use two separate lists for month names and rainfall amounts or a two-
dimensional list that contains both month names and rainfall amounts.
See the example below for sample input and output:
Enter rainfal1 for January: 1.5
Enter rainfall for February: 2.5
Enter rainfall for March: 4
Enter rainfall for April: 3
Enter rainfal1 for May: 2
Enter rainfall for June: 2.5
Enter rainfall for July: 1
Enter rainfal1 for August: 0.5
Enter rainfall for September: 0
Enter rainfa11 for October: 1.5
Enter rainfa11 for November: 1.75
Enter rainfall for December: 3
Total rainfal1 for the year: 23.25
Average rainfa11 for the year: 1.9375
Highest rainfal1 month: March
Lowest rainfal1 month: September
CODE IN PYTHON BEFORE YOU BEGIN CODING, MODEL

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 Programming Questions!