Question: For this exercise you will be using for loops to calculate various values You will be making use of the following object references which are
For this exercise you will be using for loops to calculate various values You will be making use of the following object references which are passed as arguments to this method: A Student object reference studenti A Student object reference student2 You will need to use various accessor methods of the Student class to complete this assignment. Additional variables that you will use have already been declared. 1) Set the value of student1 HighestGrade to the highest grade for studenti 2) Set the value of student2HighestGrade to the highest grade for student2 3) Set the value of student1AverageGrade to the average grade for studenti 4) Set the value of student2AverageGrade to the average grade for student2 5) Assign the bestHigh Gradestudent object reference whichever student has the best high grade 6) Assign the bestAverageGradestudent object reference whichever student has the best average grade This program contains a main method that can be used to manually test your code by right- clicking Question4.java and selecting "Run File" For this exercise you will be using for loops to calculate various values You will be making use of the following object references which are passed as arguments to this method: A Student object reference studenti A Student object reference student2 You will need to use various accessor methods of the Student class to complete this assignment. Additional variables that you will use have already been declared. 1) Set the value of student1 HighestGrade to the highest grade for studenti 2) Set the value of student2HighestGrade to the highest grade for student2 3) Set the value of student1AverageGrade to the average grade for studenti 4) Set the value of student2AverageGrade to the average grade for student2 5) Assign the bestHigh Gradestudent object reference whichever student has the best high grade 6) Assign the bestAverageGradestudent object reference whichever student has the best average grade This program contains a main method that can be used to manually test your code by right- clicking Question4.java and selecting "Run File
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
