Design a program that lets the user enter the total rainfall for each of 12 months...

50.1K

Verified Solution

Question

Programming

Design a program that lets the user enter the total rainfall foreach of 12 months into an array. The program should calculate anddisplay the total rainfall for the year, the average monthlyrainfall, and the months with the highest and lowest amounts.

Design a program to solve Chapter 8 Programming Exercise 3(Rainfall Statistics) in your textbook. Create parallel arrays forthe month names and rainfall amounts for each month. Use monthnames (i.e. January, February, March, etc.) when printing out themonths with the highest and lowest amounts. Include a modular (noglobal variables or constants) approach that includes and uses (atleast) a main module and the following functions:
• GetLargestRainfall  takes parameters of the array of rainfallstatistics and the size of the array. Returns the index of thearray element with the largest rainfall
• GetSmallestRainfall  takes parameters of the array of rainfallstatistics and the size of the array. Returns the index of thearray element with the smallest rainfall

1- create IPO chart for GetLargestRainfall funcation andGetSmallestRainfall function.

2- create the properly aligned textbook fromat pseudocode.

3- Create the python source code, that represent the pseudocoderequirements.

Answer & Explanation Solved by verified expert
3.9 Ratings (383 Votes)
def GetLargestRainfallrainfallsize maxfallrainfall0    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students