Question: Using java and arrays Write a program that reads in a number of student scores from a file, finds the best score, and then assigns
Write a program that reads in a number of student scores from a file, finds the best score, and then assigns the grades based on the following: Grade is A if score is >= best -15: Grade is B if score is >= best - 25; Grade is C if score is >= best - 35; Grade is D if score is >= best -45; Grade is F otherwise Requirements: You must use File I/O Use JFileChooser to select the input file. The input file has the following format, the first number is an integer which is the number of scores, the rest of the file is the scores. You are only allowed to read the file one time. Display the output in the console. Test Data: scores.txt Test Output: Student 1 score is 98.83 and grade is A Student 2 score is 40.05 and grade is F Student 3 score is 0.97 and grade is F Student 4 score is 9.77 and grade is F Student 5 score is 87.73 and grade is A Student 6 score is 87.8 and grade is A Student 7 score is 99.15 and grade is A Student 8 score is 94.77 and grade is A Student 9 core is 41.39 and grade is F Student 10 score is 22.68 and grade is F Student 11 score is 40.12 and grade is F Student 12 score is 8.4 and grade is F Student 13 score is 12.6 and grade is F Student 14 score is 54.54 and grade is D Student 15 score is 81.27 and grade is B Student 16 score is 75.33 and grade is B Student 17 score is 90.57 and grade is A Student 18 score is 21.61 and grade is F Student 19 score is 8.65 and grade is F Student 20 score is 23.14 and grade is F
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
