Question: Part 2 - Rainfall Statistics CODE IN PYTHON BEFORE YOU BEGIN CODING, MODEL YOUR PROGRAM LOGIC USING PSEUDOCODE Create a program that prompts the user
Part Rainfall Statistics
CODE IN PYTHON
BEFORE YOU BEGIN CODING, MODEL YOUR PROGRAM LOGIC USING PSEUDOCODE
Create a program that prompts the user to enter total rainfall for each of 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 rainfall for January:
Enter rainfall for February:
Enter rainfall for March:
Enter rainfall for April:
Enter rainfall for May:
Enter rainfall for June:
Enter rainfall for July:
Enter rainfall for August:
Enter rainfal for September:
Enter rainfall for October:
Enter rainfal for November:
Enter rainfall for December:
Total rainfall for the year:
Average rainfall for the year:
Highest rainfall month: March
Lowest rainfal month: September
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
