Question: 7.17 (Sort students) Write a program that prompts the user to enter the number of students, the students' names, and their scores, and prints student

 7.17 (Sort students) Write a program that prompts the user to

enter the number of students, the students' names, and their scores, and

prints student names and scores in decreasing order of their scores. Assume

that the name is a string without spaces, use the Scanner's next

7.17 (Sort students) Write a program that prompts the user to enter the number of students, the students' names, and their scores, and prints student names and scores in decreasing order of their scores. Assume that the name is a string without spaces, use the Scanner's next method to read a name. Sample Run for Exercise07 17 Enter input data for the program Sample data provided below You may moday it). John 71.5 Peter 34.9 Susan 94.2 Kim 79.1 Joan 56.4 Show the Sample Output Using the Preceeding Input Reset command java Exercisee7 17 Enter the number of students: 5 Enter a student name: John Enter a student score: 71.5 Enter a student name: Peter Enter a student score: 34.9 Enter a student name: Susan Enter a student score: 94.2 Enter a student name: Kim Enter a student score: 79.1 Enter a student name: Joan Enter a student score: 56.4 Names in decreasing order of their scores are: Susan 94.2 Kim 79.1 John 71.5 Joan 56.4 Peter 34.9 command

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 Databases Questions!