a) Write a program using a while loop.
A class of ten students took a quiz. The grades, integers from 0 to 100, are shown below. Determine the class average on the quiz and display it. The class average is Grades 98, 76, 71, 87, 83, 90, 57, 79, 82, and 94. Comment your code in a manner that demonstrates your understanding of the concepts (especially the new concepts).
b) Write a program to display the following pattern using a for loop. Comment your code in a manner that demonstrates your understanding of the concepts (especially the new concepts).