Question: Write a program that prompts the user to enter the number of students and each students name and score, and finally displays the student with
Write a program that prompts the user to enter the number of students and each student’s name and score, and finally displays the student with the highest score and the student with the second-highest score. Use the next() method in the Scanner class to read a name rather than using the nextLine() method. Assume that the number of students is at least 2.
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
import javautil public class Exercise0509 public static void mainString args Scanner input new Scann... View full answer
Get step-by-step solutions from verified subject matter experts
