| Method | Parameters | Description |
|---|---|---|
addStudent |
int studentID |
Adds new student after validation |
removeStudent |
int studentID |
Removes student and all enrollments |
verfiyStudent |
int studentID |
Checks if student exists (returns boolean) |
GetLaststudentadded |
None | Returns last added student ID |
| Method | Parameters | Description |
|---|---|---|
addCourse |
int courseID |
Adds new course after validation |
removeCourse |
int courseID |
Removes course and all enrollments |
verfiyCourse |
int courseID |
Checks if course exists (returns boolean) |
GetLastCourseAdded |
None | Returns last added course ID |
| Method | Parameters | Description |
|---|---|---|
enrollStudentinCourse |
int studentID, int courseID |
Enrolls student if valid |
removeEnrollment |
int studentID, int courseID |
Removes specific enrollment |
undoEnrollment |
None | Reverts last enrollment action |
redoEnrollment |
None | Reapplies undone enrollment |
| Method | Parameters | Description |
|---|---|---|
listAllCoursesByStudent |
int studentID |
Prints all courses for student |
listAllStudentsByCourse |
int courseID |
Prints all students in course |
sortStudentID |
int courseID |
Sorts students by ID for a course |
sortCourseID |
int studentID |
Sorts courses by ID for a student |
| Method | Parameters | Description |
|---|---|---|
isFullCourse |
int courseID |
Checks if course reached 30 students |
isNormalStudent |
int studentID |
Checks if student has 2-7 courses |
| Method | Description |
|---|---|
Student(int studentID) |
Constructor with ID initialization |
Student(int studentID, Student nextStudent) |
Constructor with next node reference |
isEnrolledInCourse(int courseID) |
Checks enrollment status |
addCourse(int courseID) |
Adds course to student's list |
removeCourse(int courseID) |
Removes course from student's list |
| Method | Description |
|---|---|
Courses() |
Default constructor |
Courses(int courseID) |
Constructor with course ID |
Courses(int courseID, Courses nextCourse) |
Constructor with next node reference |
addStudent(int studentID) |
Increments enrollment count |
isStudentEnrolled(int studentID) |
Placeholder for enrollment check |
| Method | Description |
|---|---|
EnrollmentAction(int studentID, int courseID) |
Tracks enrollment transactions |
| Method | Description |
|---|---|
main(String[] args) |
Entry point with menu system |
| Method ID | Description | Implemented By | Team |
|---|---|---|---|
| 0 | Main | Farouk | ✅ |
| 1 | Add Student | Team #1 | ✅ |
| 2 | Add Course | Team #1 | ✅ |
| 3 | Remove Student | Team #1 | ✅ |
| 4 | Remove Course | Team #1 | ✅ |
| 5 | Get Last Student Added | Team #1 | ✅ |
| 6 | Get Last Course Added | Team #1 | ✅ |
| 7 | Enroll Student in Course | Rashad | ✅ |
| 8 | Remove Enrollment | Farouk (mmultiverse) | ✅ |
| 9 | List Courses by Student | Ayman | ✅ |
| 10 | List Students by Course | Ayman | ✅ |
| 11 | Sort Students by ID | Zeyad | ✅ |
| 12 | Sort Courses by ID | Hassouna | ✅ |
| 13 | Check if Course is Full | Aly | ✅ |
| 14 | Check Student Type | Aly | ✅ |
| 15 | Undo/Redo Enrollment Stack | Adham | ✅ |
