Question: subject :programing 1 2. Histogram Generate a text-based histogram for a quiz given to a class of students. The quiz is graded on a scale

 subject :programing 1 2. Histogram Generate a text-based histogram for a

quiz given to a class of students. The quiz is graded on

subject :programing 1

2. Histogram Generate a text-based histogram for a quiz given to a class of students. The quiz is graded on a scale from 0 5. Write a program that allows the user to enter grades for each student. As the grades are being entered the program should count, using an array, the number of O's, the number of 1's, the number of 2's, the number of 3's, the number of 4% and the number of 5's. The program should be capable of handling an arbitrary number of student grades You can do this by making an array of size 6 where each array element is initialized to zero. Whenever a zero is entered, increment array[0]. Whenever a one is entered increment array[1], etc. up to array[5] Output the histogram count and the bar-chart too as shown below then1 to stop nter each grade a 02 3 1 O 03 3 3 0 405012 3 2 2 2 1 3 3 4 2 4 -1 grade2 of 9 bar-chart: bar-chart ; 6 grade (s of 2 bar- chart: bar-chart: bar-chart: bar-chart: ^^ grade(s) of 1 i 7 arade(s grade (s) grade (s) of of of 4: 3 ** Courses-1411116all 17_1 45 4 p o g rade (s) of o: bar-chart: of 1: bar-chart: 0 grade(sof 2 bar-chart: 2 grades of 10 grade s ) of 4; bar. chart: bar-chart: grade () of S: bar-chart

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!