5.7 Generate a text-based histogram for a quiz given to a class of students. The quiz isgraded on a scale from 0 to 5. Write a program that allows the user to enter gradesfor each student. As the grades are being entered, the program should count, usingan array, the number of 0s, the number of 2s, the number of 4s. The program should be capable ofhandling an arbitrary number of student grades.You can do this by making an array of size 6, where each array element is initializedto zero. Whenever a zero is entered, increment the value in the array at index 0.Whenever a one is entered, increment the value in the array at index 1, and so on,up to index 5 of the array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here