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