Question: I need help with this Java question. Please provide the final code and output if possible. Part 5: Sorting Students Write a program that processes
I need help with this Java question. Please provide the final code and output if possible.
Part 5: Sorting Students
Write a program that processes a data file of students course grade data. We do not know ahead of time how many lines the file contains. Each line of the file stores information about a students last name, first name, student ID number, grade as a percentage, and letter grade; the data is guaranteed to be in that order and to be valid. For example, here are a few lines of data:
Smith Kelly 438975 98.6 A
Johnson Gus 210498 72.4 C
Reges Stu 098736 88.2 B
Smith Marty 346282 84.1 B
Reges Abe 298575 78.3 C
Your program should allow the user to request that the data be sorted in ascending order by various columns: by last name, by student ID, and by grade percentage. For example, here are the lines of student data sorted in a few different ways:
Student data, by last name:
Johnson Gus 210498 72.4 C
Reges Stu 098736 88.2 B
Reges Abe 298575 78.3 C
Smith Kelly 438975 98.6 A
Smith Marty 346282 84.1 B
Student data, by student ID:
Reges Stu 098736 88.2 B
Johnson Gus 210498 72.4 C
Reges Abe 298575 78.3 C
Smith Marty 346282 84.1 B
Smith Kelly 438975 98.6 A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
