Posted by javane on Friday, April 20, 2012 at 2:35pm.
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
Related Questions
Computer Programing & Logic Design - Submit pseudocode and a flowchart for ...
Computer Programing & Logic Design - Submit pseudocode and a flowchart for ...
CIS Design and Programming - Design a program that calculates the total amount ...
Computer Programming Design - I really need someone to help me with this.I post ...
Design Logic and programming - write a program that ask the student to enter an ...
Computer Programing & Logic Design - Submit pseudocode and a flowchart for ...
Programming - Design a program that calculates the total amount of a meal ...
Programming - Language - PYTHON Design a program that calculates the total ...
computer programming - Design a program that asks the user to enter a nonegative...
programming and visual basic - These are two different types of questions, these...
For Further Reading