Question: (25 points) Add a method into the class studentStatistics (slide 12) that finds the student who has the highest score in an array of students.

(25 points) Add a method into the class studentStatistics (slide 12) that finds the student who has the highest score in an array of students. Print that student (name, ID, score). Test it in the main method (submit code and screenshot page). 6. Example 5 - three classes for student statistics: student, statistics, test public class student { public int id; public String name; public float score; student(){ System.out.println("Enter ID, Name and Score :"); this.id = Integer.parseInt(new public class studentTest public static void main(String|] args) { int Num; float Ave; student|] Stu = new student|100]; * input student number and records */ System.out.println("Enter the number of Scanner(System.in).nextLine()); this.name = new Scanner(System.in).nextLine(); this.score = Float.parseFloat(new students:"); Scanner(System.in).nextLine()); } } Num = Integer.parseInt(new Scanner(System.in).nextLine()); for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
