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 st to last, one for unweighted GPAs highest to lowest and rank them from first to last. The csv file can have between to students.
If two students have the same GPA, they should share the same rank for their category.
For example, if two students have a GPA, they should share the same rank like the following:
Rank : GPA
Rank : GPA
Rank : GPA
Rank : GPA
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
Student
Student
Student
Student
Student
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
