Question: Java code and explanations thanks !!! Programming Exercise 1 Write a program that reads a list of exam scores from the file MidtermScores.txt (which contains

 Java code and explanations thanks !!! Programming Exercise 1 Write a

Java code and explanations thanks !!!

Programming Exercise 1 Write a program that reads a list of exam scores from the file MidtermScores.txt (which contains one score per line) and then displays a histogram of those numbers, divided into the ranges 0-9, 10-19, 20-29, and so forth, up to the range containing only the value 100. If, for example, MidtermScores.txt contains the data shown on the right, your program should then be able to generate a histogram like below. Note that the code will be run on a different set of midterm scores that may have invalid scores (e.g., -1000, 999999) MidtermScores.txt 73 58 73 93 82 62 80 53 93 52 92 75 65 95 23 100 75 38 80 77 92 60 98 95 62 87 97 73 78 72 55 58 42 31 78 70 78 74 70 60 72 75 HISTOGRAM 00-09: 10-19: * 20-29: + 30-39: ** 40-49: + 50-59: ***** 60-69: ******* 70-79: ******* 80-89: 90-99: ********** 100: + *** 87 62 17 92 78 74 65 90

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!