Question: X MY COURSES RESUME Exercise 5.3.13: Most Improved points LET'S GO Taking our Student and Classroom example from earlier, you should fill i the method
X MY COURSES RESUME Exercise 5.3.13: Most Improved points LET'S GO Taking our Student and Classroom example from earlier, you should fill i the method gethostingrovedstudent, as well as the method getexameange The most improved student is the one with the largest exam score range. To compute the exam score range, you must subtract the minimum exam score from the maximum exam score. For example,if the exam scores were 90,75, and 84, the range would be 90-75 15. 1 10 ES 5.3.13: Most Improved SAVE SUBMIT+ CO 1 import java.util.Arrays; 2 public class Classroom 4 Student[] students; 5 6 int numStudentsAdded; 7public classroom(int numStudents) students new student [numstudents); numStudentsAdded0; 9 10 12 13 14- 15 16 17 18public void addStudent (Student s) 19 20 public Student getMostImprovedStudent () Fill in this method.l students[numStudent sAdded] s; numStudentsAdded++ 21 23 24 25 public void printstudent s() 26 27 for (nt i 0: i numStudentsAdded: i SES O 5.3.13: Most Improved SAVE SUBMIT + CONTINUE 23 24 25 * Check out Student Tester.java for an example of how to use this constructor. 26 public Student (String fName, String IName, int grade) 27 - 28 29 30 31 32 firstName fName; lastName |Name ; gradeLevel = grade; exams new int[NUM EXAMS]; numExamsTaken 0; 34 35 public int getExamRange() 36 37 38 39 // Fill in this method 40 public String getName () 41 42 43 return firstName++ lastName; 45 46- 47 public void addExamScore(int score) exams [numExamsTaken] score; numExamsTaken+ 48 da
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
