Changes between Version 2 and Version 3 of UC2001
- Timestamp:
- 06/25/26 15:29:21 (13 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UC2001
v2 v3 1 = UseCase2001 – Assign Grade to Student1 == UC2001 – Assign Grade to Student == 2 2 3 **Initiating actor:** Professor 3 '''Initiating actor:''' Professor 4 '''Other actors:''' None 4 5 5 **Other actors:** None 6 7 **Description:** 6 '''Description:''' 8 7 A professor records the final grade for a student enrolled in a subject under their supervision. 9 8 10 **Scenario:** 11 9 '''Scenario:''' 12 10 1. Professor logs in and selects “Enter Grades.” 13 14 2. System shows students and subjects that this specific professor teaches: 11 2. System shows students and subjects that this specific professor teaches (вклучувајќи го и Ss_Id): 15 12 {{{ 16 SELECT s ub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname13 SELECT ss.Ss_Id, sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname 17 14 FROM Student_Subject ss 18 15 JOIN Subject sub ON ss.Subject_Id = sub.Id … … 20 17 WHERE ss.Professor_Id = :professor_id; 21 18 }}} 22 23 19 3. Professor selects a student/subject entry and enters the final grade. 24 25 4. System updates the database with the grade and changes status to 'PASSED' (or 'FAILED' depending on the grade): 20 4. System updates the database with the grade and changes status to 'Passed' (усогласено со композитниот клуч и ENUM): 26 21 {{{ 27 22 UPDATE Student_Subject 28 SET Final_Grade = :grade, Status = 'P ASSED'29 WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Professor_Id = :professor_id;23 SET Final_Grade = :grade, Status = 'Passed' 24 WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Ss_Id = :ss_id; 30 25 }}} 26 5. System confirms the update and allows the professor to continue grading other students. 31 27 32 5. System confirms the update and allows the professor to continue grading other students. 28 29 == UC2002 – Advise Student == 30 31 '''Initiating actor:''' Professor 32 '''Other actors:''' None 33 34 '''Description:''' 35 A professor records an academic advising relationship with a student for a specific time period. 36 37 '''Scenario:''' 38 1. Professor selects “Start Advising Student”. 39 2. System shows a list of students belonging to the same faculty as the professor: 40 {{{ 41 SELECT st.Id, st.Name, st.Surname 42 FROM Student st 43 JOIN Professor p ON p.Faculty_Id = st.Faculty_Id 44 WHERE p.Id = :professor_id; 45 }}} 46 3. Professor selects a student and enters the advising start and end dates. 47 4. System inserts the advising record into the database: 48 {{{ 49 INSERT INTO Advice (Student_Id, Professor_Id, Start_Date, End_Date) 50 VALUES (:student_id, :professor_id, :start_date, :end_date); 51 }}} 52 5. System confirms the advisor assignment.
