Using an Array to store the count.
The basic problem I was given is to write a C++ program to output a report that shows the grade distribution for a course. The program first prompts for and inputs the specified number of students. The program then prompts for and inputs the final grade for each student.
Finally the program displays a report of the grade distribution.The hint given was There is no need to use an array to store the actual input grades, instead use an array to keep track of the counting, that is, how many times each grade occurs in the input.
I can manage the input on number of students, but the hint throws me off course.
I'm guessing I should have an array of size 9
ie FinalGrade[9]
But I have no Idea on how to keep track of number of times students get different grades.
This is my second week using C++, and I've only used arrays to hold the input.
Any help or more usefull hints would be apreciated.