Ok, this has me stumped. Looking for a solution.
"A math professor needs a grading distribution program so that he can "grade on a curve." As you know, the numeric grades in a math exam typically vary between 0 and 100 and are expressed as integer numbers. Write a program that allows the professor to enter the grades one at a time, terminating with an EOF at his or her keyboard. After EOF is entered, the program will report a list of the grades and the number of entries for each grade."
The lesson was on Arrays. I can build a program that will create an array with a fixed number of elements and populate each element in the array, but I can't think of a way to have it display a cumulative count for each instance of a grade. Also, I want the program to allow the professor to enter as many grades as he/she wants. How would I write the program so that the number of elements in the array is determined at run-time?