How would I write this Java program given the following specification and provide comments The goal is
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date: