Posted by **javane** on Friday, April 20, 2012 at 2:35pm.

Design a program that lets the user enter the total rainfall for each 12 months into an array. The program should calculate and display the total rainfall for the year the average monthly rainfall, and the month with the highest and lowest amounts.

In pseudo-code and a flowchart

- design, no particular language design -
**Damon**, Friday, April 20, 2012 at 3:44pm
first column = n = month number from 1 to 12

second column = rainfall for n R(n)

third column = total rain so far

Rmin = 5000 (unrealistic high)

Rmax = 0

Rav = 0

Rtot = 0

Do loop A for n = 1, 12

Read R(n)

If R(n) > Rmax, then Rmax = R(n)

If R(n) < Rmin, then Rmin = R(n)

Rtot = Rtot + R(n) (this is total so far)

Rav = Rtot/n (this is the average so far)

write n, R(n),Rtot, Rav, Rmax, Rmin

A end of loop

end

- Programming logic and design -
**cordell**, Sunday, November 10, 2013 at 6:37am
1, 12

## Answer This Question

## Related Questions

- C++ - I am having trouble identifying the flaws in my code. I need to created a ...
- Check my math please - Total Rainfall = rainfall mm x area covered In order to ...
- CIS Design and Programming - Design a program that calculates the total amount ...
- Programing Logic and design - Design a program that asks the user to enter a ...
- math - the average annual rainfall for a town is 43.2 inches. I know the ...
- Computer Programing & Logic Design - Submit pseudocode and a flowchart for the ...
- Computer Programing & Logic Design - Submit pseudocode and a flowchart for the ...
- Computer Programming Design - I really need someone to help me with this.I post ...
- Programming - Language - PYTHON Design a program that calculates the total ...
- Programming - Design a program that calculates the total amount of a meal ...

More Related Questions