Keep on looping...

(Display Listing 7.)

This process continues until the user enters -1.

Then the body of the loop is skipped.

The two statements following the body of the loop are executed.

These two statements compute and display the average grade as shown in Figure 10.

Figure 10. Report of average grade in program named Alice0175f.