Answer

  1. Read the number S of students

  2. Repeat the following S times:

    1. Read the number E of examinations taken by the student
    2. Set the running total to 0
    3. Repeat the following E times:
    4. Read an exam score and add it to the running total

  3. Calculate and print the average for the student by dividing the running total by E

Return to lesson.



Hamlet Project
hamlet@cs.utah.edu