Asked by yvonne
Example
Develop a pseudocode algorithm for a program that accepts each of the average marks of 10 students in a class and computes the sum and the average mark of the class. The program should display the average mark of the class.
Begin
Set total to zero
Set counter to one
While counter is less than or equal to ten
Input student average mark
Add average mark to total
Add one to the counter
Set the class average to total divided by ten
Display the class average
End
Develop a pseudocode algorithm for a program that accepts each of the average marks of 10 students in a class and computes the sum and the average mark of the class. The program should display the average mark of the class.
Begin
Set total to zero
Set counter to one
While counter is less than or equal to ten
Input student average mark
Add average mark to total
Add one to the counter
Set the class average to total divided by ten
Display the class average
End
Answers
Answered by
Steve
looks ok to me
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.