Question: Write a program in java that calculates the grades for a course. Your program should prompt the user for the name of a file that
Write a program in java that calculates the grades for a course. Your program should prompt the user for the name of a file that stores exam scores. Each line of the file has the following format:
LastName:FirstName:Exam:Exam:Exam
The exams are to be weighted for the first exam, for the second exam, and for the third exam. Based on that, a final grade is to be assigned: A if the total is at least B if it is at last C if it is at least D if it is at least and F otherwise. The highest grade based on the total points is always assigned, so a gets a C Your program should output to the terminal a list of students with the letter grade, as follows:
LastName FirstName LetterGrade
It should also output to a file, whose name is provided by the user, lines of the form
LastName FirstName Exam Exam Exam TotalPoints LetterGrade
After it is done, it will output the grade distribution. If the input is
Doe:John:::
Pantz:Smartee:::
Then the terminal output is
Doe John A
Pantz Smartee B
And the output file will contain
Doe John A
Pantz Smartee B
A
B
C
D
F
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
