Student Management System UML
Student Management System UML
1. Student:
- Attributes:
* studentId: int
* name: String
* email: String
* enrollments: List<Enrollment>
- Methods:
* addEnrollment(Enrollment): void
* getGPA(): double
2. Course:
- Attributes:
* courseId: int
* courseName: String
* credits: int
3. Enrollment:
- Attributes:
* course: Course
* grade: double
- Methods:
* setGrade(double): void
* getGrade(): double
4. StudentManagementSystem:
- Attributes:
* students: List<Student>
* courses: List<Course>
- Methods:
* addStudent(Student): void
* addCourse(Course): void
Explanation
The UML diagram describes the core components of the Student Management System:
- Course: Represents a course with details like ID, name, and credits.
- Enrollment: Links a student to a course and stores the grade achieved in that course.
add students, add courses, search for students, and generate reports.
Code implements functionality for calculating GPA, adding enrollments, and ensuring modularity by