Question: Write a Java program that prompts user for the number of students in a class ( a non - negative integer ) , reads it

Write a Java program that prompts user for the number of students in a class (a non-negative integer), reads it, and saves it in an int variable called numStudents. It then prompts user for the grade of each of the students (integer between 0 to 100) and saves them in an int array called grades.
Assume that the grades are between 0 and 100. The program shall then create 10 histogram bins to contain the counts of grades between 0-9,10-19,...,90-100, respectively, in an int array called bins; and print the histogram vertically as shown in the sample output. No input validation is needed.
 Write a Java program that prompts user for the number of

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!