The pseudo-code
Set total to zero
Set grade counter to one
While grade counter is less than or equal to ten
Print “Enter another grade” Read grade
Add the grade into the total
Add one to the grade counter
end_while
Set the class average to the total divided by ten
Print the class average
Previous slide
Next slide
Back to first slide
View graphic version