Write an algorithm for the following problem:
1. Prompts the user for the number of grades they wish to enter.
2. Using a Counter Controlled While Loop, get that many grades from the user.
Compute a running total of these grades as they are entered.
Count each grade as it is entered.
After the While Loop is done executing, compute the average of all the grades entered.
Before computing the average, use an IF statement to error check to prevent division by zero.
3. Print out the average of the grades.
Include Input, Output, Additional, Formulas (if any), Initial Algorithm, and Refined Algorithm.
Comments