I am writing psuedocode for a program that lets the user enter the total rainfall for each of 12 months into an array.
I am writing psuedocode 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, im missing function definition.
Module main ( )
Constant Integer SIZE = 12
Declare Real rainfall [SIZE]
Declare Real totalRainfall, avgRainfall
Declare String monthWithHighestRainfallAmount, monthWithLowestRainfallAmount
Call getMonthlyRainfall (rainfall, SIZE)
Set totalRainfall = getTotalRainfall (rainfall, SIZE)
Set monthWithLowestRainfallAmount = getLowestRainfall (rainfall, SIZE)
Set monthWithHighestRainfallAmount = getHighestRainfall (rainfall, SIZE)
Set avgRainfall = totalRainfall / SIZE
Display “The total rainfall for the year is : “; totalRainfall
Display “The average monthly rainfall is:”; avgRainfall
Display “The Month With the highest rainfall amount is: “; monthWithHighestRainfallAmount
Display “The Month With the lowest rainfall amount is: “; monthWithLowestRainfallAmoun
How it Works
It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.
Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.
After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.
Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!