Question: please provide code in java. Instructions Use arrays to implement a classes GraduateList. The list will have the following attributes: String Student[MAXI, static int totalGrads,
Instructions Use arrays to implement a classes GraduateList. The list will have the following attributes: String Student[MAXI, static int totalGrads, double score(MAX), static double AvgScores where MAX 1000. The GraduateList will be sorted according to the Student Number, Define the following methods for the Graduatelist Class 1. AddGraduate() method to add students to the sortedlist, this method will increase total students, and generate a random score value between 50 and 100, and then compute the averageScore. 2. Graduatelist Copylist) method to create a copy of Graduatelist object. This will return a reference to Graduatelist Object 3. int GetGraduate(String name) to find the index number of the student whose student Number is passed 4. PrintList() to print the entire list 5. Remove Graduate(String name) that will call getGraduate() method to find the index decrement the totalGrads, remove an item stored at the same index in both Students() and Scores[] lists and recompute the AveScore. 6. Clearl.isto) will delete all entries 7. IsEmpty will return if the graduatelist is empty
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
