Question: In the Student class: Make a constructor that initializes the students name to whatever was entered in main() and subsequently passed in to your Gradebook
In the Student class:
Make a constructor that initializes the students name to whatever was entered in main() and subsequently passed in to your Gradebook function that adds new students. Recall that this information will be passed in to the Student constructor from the Add Student function in Gradebook.
Create a function that will allow the user to enter up to 5 grades for a student. This function will actually contain the cout and cin commands to prompt the user to enter each grade (Dont worry about putting error checks in here because I wont try to break it.)
Naturally, this class will contain either an array or vector (your choice) of grades that the user will enter (no more than 5).
This class will contain a function that displays the grades for a student. It will need to loop over all the grades in the array for the student and print them out. This function will be called from the function in the Gradebook class that prints out each student object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
