GradebookOO and GBProgram. Compile.
GradebookOO called addGrade which accepts a double argument and adds it to the array of grades. This is difficult. Two things you should note:
addGrade method should follow:
addGrade is called, the grades field holds a reference to an array of grades:
grades ���> [83.2, 97.4, 76.8]
temp, that is a size 1 bigger than grades:
grades ���> [83.2, 97.4, 76.8] temp ���> [ , , , ]
grades into temp:
grades ���> [83.2, 97.4, 76.8] temp ���> [83.2, 97.4, 76.8, ]
temp:
grades ���> [83.2, 97.4, 76.8] temp ���> [83.2, 97.4, 76.8, 90.5]
grades so it points to the temp array:
grades ���> [83.2, 97.4, 76.8, 90.5]
GradebookOO constructor that takes an array of doubles as an argument. And change the main method of GBProgram so that it instantiates an empty GradebookOO and adds the grades one-by-one to it with the addGrade method. Compile and run.
EasyReader to read the grades from the user and print out a menu to the user. See Steps 3 and 4 of Lab 4 for more details.
deleteGrade to GradebookOO which accepts a grade as an argument and removes it from the array if it is there. This is tricky. Compile and run.
Submission: Submit all of your code for this lab.