[Solved]Python Design Program Allow User Enter Rainfall Statistics 12 Months List Program Calculat Q37027277
In Python:
Design a program that will allow the user to enter the rainfallstatistics for 12 months into a list. The program should calculatethe total rainfall for the year, the average rainfall for the yearand the months with the highest and lowest rainfall.
You will create your program in the IDLE environment and save itas a python file. Use the file naming conventionyourlastname.py.
Create an empty list to store the rainfall amounts. Use a loopto ask the user for the rainfall amount for the month and store itin the list at the appropriate index for the month. Seesection 7.5 in the chapter on List Methods and Useful built-infunctions for highest and lowest (min and max). Alsosee program 7-9 for calculating total and average.
To get the month name to display to the user, you will need toset up a list of 12 elements containing the monthnames. You can then use the loop counter as an indexinto the month names to get the correct month.
Input validation –each rainfall amount shouldbe a positive number
Sample Dialog/Output:
Edit question
Programming Style Requirements.
- Comments – Begin your program with a comment that includes: a)your name, b)program status – either “Complete” or describe anyincomplete or non-functioning part of your program c)A 1-3 linedescription of what the program does.
- Function comments – each function should begin with a commentexplaining what the function does
- Variable names – use meaningful variable names such astotal_taxes or num_cookies.
- Function names – use meaningful verb names for functions suchas display_taxes.
- Named constants – Use named constants for all number valuesthat will not be changed in the program such as RECIPE_SUGAR =1.5. See section 2.9 on Named Constants
Expert Answer
Answer to In Python: Design a program that will allow the user to enter the rainfall statistics for 12 months into a list. The pro… . . .
OR

