Though there is a teeny bug in there, this program calculates the grade average of some tests. See the note.
Total number of grades entered:
The average is:
or,
Note:
This gets an average, and adds
a grade, and gets the average of
the
two
.