Question: Exercise 0 2 : a - Create an array of 5 student objects, and fill the array. b - Using for statement, print the array
Exercise:
a Create an array of student objects, and fill the array.
b Using for statement, print the array data of each object in the array
c In class Test, create method max that receives an array of students, and returns the name of the students with the highest GPA.
d In class Test, create method avg that receives an array of students, and returns the average GPA.
e Call both methods in main, and output their results.
f Why should these methods be static?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
