Problem

Write a program that processes a data file of students’ course grade data. The data arrive...

Write a program that processes a data file of students’ course grade data. The data arrive in random order; each line stores information about a student’s last name, first name, student ID number, grade as a percentage, and letter grade. For example, here are a few lines of data:

     
SmithKelly43897598.6A
JohnsonGus21049872.4C
RegesStu09873688.2B
SmithMarty34628284.1B
RegesAbe29857578.3C

Your program should be able to sort the data by any of the columns. Use Comparators to achieve the sort orderings. Make the data sortable by last name, student ID, and grade percentage in ascending and descending order. For example, here are the lines of student data sorted a few different ways:

Student data, by last name:     
JohnsonGus21049872.4C
RegesStu09873688.2B
RegesAbe29857578.3C
SmithKelly43897598.6A
SmithMarty34628284.1B
Student data, by student ID:
RegesStu09873688.2B
JohnsonGus21049872.4C
RegesAbe29857578.3C
SmithMarty34628284.1B
SmithKelly43897598.6A

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 13
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT