Question: Given a csv file with student names, weighted GPAs, and unweighted GPAs, sort them twice, one for weighted GPAs highest to lowest and rank them

Given a csv file with student names, weighted GPAs, and unweighted GPAs, sort them twice, one for weighted GPAs highest to lowest and rank them from 1st to last, one for unweighted GPAs highest to lowest and rank them from first to last. The csv file can have between 1 to 100 students.
If two students have the same GPA, they should share the same rank for their category.
For example, if two students have a 3.7 GPA, they should share the same rank like the following:
Rank 1: GPA 4.0
Rank 2: GPA 3.7
Rank 2: GPA 3.7
Rank 4: GPA 3.5
When you print out your rank, your list must clearly indicate the student names and if it is their weighted or unweight GPA as well as their rank.
When reading in data from the csv file, you should store them in a student class.
Name WeightedGPA UnWeightedGPA
Student14.13.7
Student23.22.7
Student343.9
Student44.93.5
Student54.33.4

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!