Question: HELP! I need help with writing a c + + code, i got majority of it correct execpt for the E 3 c part, could

HELP! I need help with writing a c++ code, i got majority of it correct execpt for the E3c part, could someone please tell me how to call the print() function in the Student class to print out student records. Btw my code was written using arrays not vectors. **The evaluators commented "The printAll() function was sufficiently declared in the Roster class. The function does not competently call the print() function in the Student class to print out student records."**
You must write a program containing two classes (Evoid Student and Roster). The program will maintain a current roster of students within a given course. Student data for the program include student ID, first name, last name, email address, age, an array of the number of days to complete each course, and degree program. This information can be found in the studentData Table below. The program will read a list of five students and use function calls to manipulate data (see part F4 in the requirements below). While parsing the list of data, the program should create student objects. The entire student list will be stored in one array of students called classRosterArray. Specific data-related output will be directed to the console.
3. Define the following functions:
a. public void add(string studentID, string firstName, string lastName, string emailAddress, int age, int daysInCourse1, int daysInCourse2, int daysInCourse3, DegreeProgram degreeprogram) that sets the instance variables from part D1 and updates the roster.
b. public void remove(string studentID) that removes students from the roster by student ID. If the student ID does not exist, the function prints an error message indicating that the student was not found.
c. public void printAll() that prints a complete tab-separated list of student data in the provided format: A1[tab] First Name: John [tab] Last Name: Smith [tab] Age: 20[tab]daysInCourse: {35,40,55} Degree Program: Security. The printAll() function should loop through all the students in classRosterArray and call the print() function for each student.
d. public void printAverageDaysInCourse(string studentID) that correctly prints a students average number of days in the three courses. The student is identified by the studentID parameter.
e. public void printInvalidEmails() that verifies student email addresses and displays all invalid email addresses to the user.
Note: A valid email should include an at sign ('@') and period ('.') and should not include a space ('').
f. public void printByDegreeProgram(DegreeProgram degreeProgram) that prints out student information for a degree program specified by an enumerated type.
F. Demonstrate the programs required functionality by adding a main() function in main.cpp, which will contain t
HELP! I need help with writing a c + + code, i

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 Programming Questions!