The doSomething function
As before, I will present and explain only the code in the function named doSomething.
You can view the remainder of the program in Listing 11 near the end of the lesson.
The doSomething function begins in Listing 6, which declares and initializes three working variables.
Note that the grade counter variable named count is initialized to -1 instead of 0 as was the case in the previous program.