Changes between Version 1 and Version 2 of UC2001
- Timestamp:
- 06/15/26 14:15:30 (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UC2001
v1 v2 3 3 **Initiating actor:** Professor 4 4 5 **Other actors:** Student5 **Other actors:** None 6 6 7 7 **Description:** 8 A professor records the final grade for a student enrolled in a subject .8 A professor records the final grade for a student enrolled in a subject under their supervision. 9 9 10 10 **Scenario:** … … 12 12 1. Professor logs in and selects “Enter Grades.” 13 13 14 2. System shows s ubjects theprofessor teaches:14 2. System shows students and subjects that this specific professor teaches: 15 15 {{{ 16 SELECT sub.Id, sub.Name, st.Id AS Student_Id, st.Name, st.Surname 17 FROM Subject sub 18 JOIN Subject_Professor sp ON sp.Subject_Id = sub.Id 19 JOIN Student_Subject ss ON ss.Subject_Id = sub.Id 20 JOIN Student st ON st.Id = ss.Student_Id 21 WHERE sp.Professor_Id = :professor_id; 16 SELECT sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname 17 FROM Student_Subject ss 18 JOIN Subject sub ON ss.Subject_Id = sub.Id 19 JOIN Student st ON ss.Student_Id = st.Id 20 WHERE ss.Professor_Id = :professor_id; 22 21 }}} 23 22 24 3. Professor selects a student and enters the final grade.23 3. Professor selects a student/subject entry and enters the final grade. 25 24 26 4. System updates the database :25 4. System updates the database with the grade and changes status to 'PASSED' (or 'FAILED' depending on the grade): 27 26 {{{ 28 27 UPDATE Student_Subject 29 SET Final_Grade = :grade, Status = ' COMPLETED'30 WHERE Student_Id = :student_id AND Subject_Id = :subject_id ;28 SET Final_Grade = :grade, Status = 'PASSED' 29 WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Professor_Id = :professor_id; 31 30 }}} 32 31 33 5. System confirms the update and allows professor to continue forother students.32 5. System confirms the update and allows the professor to continue grading other students.
