Students take exams in all their subjects at the end of every year. A procedure is to be written which inputs the marks of a student from the STUDENT file and calculates the mean
mark for that student.
Produce an algorithm which will carry out the above task. The procedure is to be called
MEAN.
✔Procedure mean
✔Number of marks = 0
Total = 0
✔Do While you've still got marks
Read Mark
✔Number = Number + 1
Total = Total + Mark
EndWhile
✔Average = Total/Numbered Mark
End
No comments:
Post a Comment