Question: Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display

Design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.
Need PSEUDOCODE & PYTHON CODE
->Must use a list(array)
-> Must design code to be modular
 Design a program that lets the user enter the total rainfallHeres an example

*This module provides intro and gets user's name def getIntro(userName): printC"---Hello!! Welcome to the anual Rainfal1 Statistics program--" print("What is your name?") userName input("Enter name: ") printC" Hi" userName) printC"This program gets the Last 12 months of rainfall then calculates printCrtotal, average, max, min, & months w/ highest & lowest rainfall. *This module displays the results def getResultsCtotal, avg, maxi mum, maxIndex, minimum, minIndex): pl printC"The total rainfall1 for the year is, total) all print(The average monthly rainfall is", avg) printC" The maximum amount of rainfall is", maximum) cte printCThe month with the maximum amount of rainfall is", maxIndex + 1) ctuprint("The month with the minimum amount ofi rainfall is, minimum) rop printCThe month with the minimum omount f roinfall is, minIndex 1 ei#Call main ra mainC) ner rop Ln: 38 Col: O

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