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 Ec 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 F 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 datarelated output will be directed to the console.
Define the following functions:
a public void addstring studentID, string firstName, string lastName, string emailAddress, int age, int daysInCourse int daysInCourse int daysInCourse DegreeProgram degreeprogram that sets the instance variables from part D and updates the roster.
b public void removestring 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 tabseparated list of student data in the provided format: Atab First Name: John tab Last Name: Smith tab Age: tabdaysInCourse: 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 printAverageDaysInCoursestring 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 printByDegreeProgramDegreeProgram 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
