WhatsApp +1 (332) 244-5747

Total rainfall for the year

by | Jun 30, 2021 | Assignment

I am writing pseudocode for 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. 

This is what I have so far, I’m missing function definition. Module main ( )Constant Integer SIZE = 12Declare Real rainfall [SIZE]Declare Real total Rainfall, avg Rainfall Declare String month With Highest Rainfall Amount, month With Lowest Rainfall Amount Call get Monthly Rainfall (rainfall, SIZE)Set total Rainfall = get Total Rainfall (rainfall, SIZE)Set month With Lowest Rainfall Amount = get Lowest Rainfall (rainfall, SIZE)Set month With Highest Rainfall Amount = get Highest Rainfall (rainfall, SIZE)Set avg Rainfall = total Rainfall / SIZE Display “The total rainfall for the year is : “; total Rainfall Display “The average monthly rainfall is:”; avg Rainfall Display “The Month With the highest rainfall amount is: “; month With Highest Rainfall Amount Display “The Month With the lowest rainfall amount is: “; month With Lowest Rainfall Amount End For

Get your custom paper done at low prices


275 words/page


Double spacing


Free formatting (APA, MLA, Chicago, Harvard and others)


12 point Arial/Times New Roman font


Free title page


Free bibliography & reference


What Students Are Saying

Outstanding, thank you very much.

Undergraduate Student

English, Literature

Awesome. Will definitely use the service again.

Master's Student

Computer Science