Changes between Version 2 and Version 3 of UC2001


Ignore:
Timestamp:
06/25/26 15:29:21 (13 hours ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UC2001

    v2 v3  
    1 = UseCase2001 – Assign Grade to Student
     1== UC2001 – Assign Grade to Student ==
    22
    3 **Initiating actor:** Professor
     3'''Initiating actor:''' Professor
     4'''Other actors:''' None
    45
    5 **Other actors:** None
    6 
    7 **Description:**
     6'''Description:'''
    87A professor records the final grade for a student enrolled in a subject under their supervision.
    98
    10 **Scenario:**
    11 
     9'''Scenario:'''
    12101. Professor logs in and selects “Enter Grades.”
    13 
    14 2. System shows students and subjects that this specific professor teaches:
     112. System shows students and subjects that this specific professor teaches (вклучувајќи го и Ss_Id):
    1512{{{
    16 SELECT sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname
     13SELECT ss.Ss_Id, sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname
    1714FROM Student_Subject ss
    1815JOIN Subject sub ON ss.Subject_Id = sub.Id
     
    2017WHERE ss.Professor_Id = :professor_id;
    2118}}}
    22 
    23193. 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):
     204. System updates the database with the grade and changes status to 'Passed' (усогласено со композитниот клуч и ENUM):
    2621{{{
    2722UPDATE Student_Subject
    28 SET Final_Grade = :grade, Status = 'PASSED'
    29 WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Professor_Id = :professor_id;
     23SET Final_Grade = :grade, Status = 'Passed'
     24WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Ss_Id = :ss_id;
    3025}}}
     265. System confirms the update and allows the professor to continue grading other students.
    3127
    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:'''
     35A professor records an academic advising relationship with a student for a specific time period.
     36
     37'''Scenario:'''
     381. Professor selects “Start Advising Student”.
     392. System shows a list of students belonging to the same faculty as the professor:
     40{{{
     41SELECT st.Id, st.Name, st.Surname
     42FROM Student st
     43JOIN Professor p ON p.Faculty_Id = st.Faculty_Id
     44WHERE p.Id = :professor_id;
     45}}}
     463. Professor selects a student and enters the advising start and end dates.
     474. System inserts the advising record into the database:
     48{{{
     49INSERT INTO Advice (Student_Id, Professor_Id, Start_Date, End_Date)
     50VALUES (:student_id, :professor_id, :start_date, :end_date);
     51}}}
     525. System confirms the advisor assignment.