Question: How would I write this Java program given the following specification and provide comments The goal is to read in a list of people and
How would I write this Java program given the following specification and provide comments
The goal is to read in a list of people and their quiz scores into an array, sort the class by their exam scores, and output the name of the student with a particular ranking. Input Format The first line contains n, the number of students. The second line contains X, the ranking to output.
This is followed by Y pairs of student names and exam scores, each on a separate line.
Output
Format The name of the student who came in rth rank in the class.
Constraints 0≤n≤100
Sample Input
5
66
Cara
21
Mary
67
Sam
99
Mia
87
James
53
Sample Output
Cara
Step by Step Solution
There are 3 Steps involved in it
import javautil public class StudentRanking static class Student String name int score public Studen... View full answer
Get step-by-step solutions from verified subject matter experts
