This project involves migrating a student management system to C++ from an existing platform. The goal is to manage student data including personal details, course completion days, and degree programs. The program includes two main classes: Student and Roster.
- C++ Integrated Development Environment (IDE): Visual Studio or Xcode
- Files Required:
degree.h: Contains the enumeration for degree programs.student.handstudent.cpp: Define and implement theStudentclass.roster.handroster.cpp: Define and implement theRosterclass.main.cpp: Contains themain()function and demonstrates the program functionality.
The program performs the following tasks:
-
Print Course Information:
- Displays the course title, programming language used, WGU student ID, and name.
-
Student Management:
- Adds students to the roster.
- Prints all student data.
- Prints invalid email addresses.
- Calculates and prints the average days in courses for each student.
- Prints student information by degree program.
- Removes students from the roster by ID.
-
Error Handling:
- Handles invalid email formats.
- Manages attempts to remove non-existing students.
Defines the enumerated type DegreeProgram for degree programs: SECURITY, NETWORK, SOFTWARE.
Defines the Student class with attributes such as student ID, first name, last name, email, age, days in course, and degree program. Includes methods for accessing and modifying these attributes, as well as a print method to display student information.
Defines the Roster class with an array of student pointers. Includes methods to add, remove, and print student data. Also includes methods to print average days in course, invalid email addresses, and students by degree program.
Contains the main() function, demonstrating the program’s functionality by creating an instance of the Roster class and performing various operations such as adding students, printing data, and removing students.