#include #include #include "roster.h" #include using std::cout; using std::endl; using std::string; using namespace std; int main() { cout << "SCRIPTING AND PROGRAMMING APPLICATION C867\n"; cout << "C++\n"; const int numStudents = 6; static string studentData[numStudents] = { "A1,John,Smith,John1989@gmail.com,20,30,35,40,SECURITY", "A2,Suzan,Erickson,Erickson_1990@gmailcom,19,50,30,40,NETWORK", "A3,Jack,Napoli,The_lawyer99yahoo.com,19,20,40,33,SOFTWARE", "A4,Erin,Black,Erin.black@comcast.net,22,50,58,40,SECURITY", "A5,D,S,DS@wgu.edu,31,25,34,31,SOFTWARE" }; Roster* rep = new Roster(numStudents); cout << "Parsing data and adding students:\t"; for (int i= 0; i < numStudents; i++) { rep->parseAdd(studentData[i]); } cout << "DONE.\n"; cout << "Displaying all students:\n"; rep->print_All(); cout << "Removing A1:\n"; if (rep->remove("A1")) rep->print_All(); else cout << "Book not found!\n"; cout << "Removing A1:\n"; if (rep->remove("A1")) rep->print_All(); else cout << "Book not found!\n"; rep->printAverageDaysInCourse("A3"); rep->printInvailidDaysEntries(); rep->printByDegreeProgram(SECURITY); rep->printByDegreeProgram(NETWORK); rep->printByDegreeProgram(SOFTWARE); system("pause"); return 0; }