Question: #include #include #include //include the two header files here //---- //---- using namespace std; ASUCourse::ASUCourse(string newCourseName, vector origClassList) { //initialize member variable 'courseName' and 'classRoster'

#include  #include  #include  //include the two header files here //---- //---- using namespace std; ASUCourse::ASUCourse(string newCourseName, vector origClassList) { //initialize member variable 'courseName' and 'classRoster' with //the input parameters. 'numOfEnrollment' should be initialized //by the size of the original class list //---- //---- //---- } //Given an index for classRoster, this accessor should return the relevant student's Id //Check ASUCourse.h file, write a complete getStudentID function here //---- { //---- } //Given an index for classRoster, this accessor should return the relevant student's name //Check ASUCourse.h file, write a complete getStudentName function here //---- { //---- } //Given an index for classRoster, this accessor should return the relevant student's grade //Check ASUCourse.h file, write a complete getStudentGrade function here //---- { //---- } //The accessor returns number of enrollment for this course int ASUCourse::getNumEnrollment() { //----- } //This function take the parameter student as input and add him/her inside the //classRoster if number of enrollment is <= 120, which is the cap for a class. //if be added sucucessfully, increase the number of enrollment by 1, and return //true, otherwise return false bool ASUCourse::addStudent(Student aStu) { //---- //---- //---- } //This function will drop a student from a class roster by the parameterized student's ID bool ASUCourse::dropStudent(string aStuID) { //linear search on classRoster, if found the student's ID inside, remove/drop the //students from the class roster, return true. Otherwise return false. //To remove an object from a vector at index i, you can use vector function erase //such as: sampleVector.erase(sampleVector.begin()+ i); //---- //---- } //This function display the whole class roster row by row on screen void ASUCourse::displayClassRoster() { cout << " " << "********* " << courseName << " Class Roster ********* "; //Write a for loop to traverse the class roster and get each student object out, //the call Student class member function toString() to display each student on screen //---- //---- //---- cout << " Total: " << numOfEnrollment << " students in class."<< endl; cout << " ************************************** " << endl; } 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!