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
Heres 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
Get step-by-step solutions from verified subject matter experts
