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 nonnegative 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 to and saves them in an int array called grades.
Assume that the grades are between and The program shall then create histogram bins to contain the counts of grades between respectively, in an int array called bins; and print the histogram vertically as shown in the sample output. No input validation is needed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
