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 20 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
1. 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.
2. 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 21th column.
iii. The G in Grade should be in the 28th column.
d. Each word and only the words should be underlined with dashes.
3. Read each line of the file robustly parsing it into the surname, given name, and score.
4. Translate the score into a letter grade according to Table 1.
5. Print Surname a comma, given name starting in column 1.
6. Print the score with the least significant digit under the e is score.
7. Print the letter grade with the letter under the a in grade.
Refer to picture below
In this assignment you will use structured

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 Programming Questions!