Question: In this assignment you will use structured programming in the Java language to process the Scores.txt file. This file contains 2 0 entries. Each entry
In this assignment you will use structured programming in the Java language to process the Scores.txt file. This file contains entries. Each entry has a surname, a given name, and a score separated by spaces. Print a table of names, scores, and letter grades. The source code will be attached to the assignment.
Instructions
Robustly read the name of the scores file from the user.
a Prompt the user with string, "Enter the name of the scores file:".
b If the string provided cannot be opened, print, "Sorry, I cannot open: filename.", and prompt again until the file may opened.
Print the heading.
a Print the title, "Results from the Midterm Exam".
b Print a blank line.
c Print the headings "Student", "Score", and "Grade".
i The S in Student should be in the first column.
ii The S in Score should be in the th column.
iii. The G in Grade should be in the th column.
d Each word and only the words should be underlined with dashes.
Read each line of the file robustly parsing it into the surname, given name, and score.
Translate the score into a letter grade according to Table
Print Surname a comma, given name starting in column
Print the score with the least significant digit under the e is score.
Print the letter grade with the letter under the a in grade.
Refer to picture below
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
