| Version 2 (modified by , 2 days ago) ( diff ) |
|---|
UseCase2001 – Assign Grade to Student
Initiating actor: Professor
Other actors: None
Description: A professor records the final grade for a student enrolled in a subject under their supervision.
Scenario:
- Professor logs in and selects “Enter Grades.”
- System shows students and subjects that this specific professor teaches:
SELECT sub.Id AS Subject_Id, sub.Name AS Subject_Name, st.Id AS Student_Id, st.Name, st.Surname FROM Student_Subject ss JOIN Subject sub ON ss.Subject_Id = sub.Id JOIN Student st ON ss.Student_Id = st.Id WHERE ss.Professor_Id = :professor_id;
- Professor selects a student/subject entry and enters the final grade.
- System updates the database with the grade and changes status to 'PASSED' (or 'FAILED' depending on the grade):
UPDATE Student_Subject SET Final_Grade = :grade, Status = 'PASSED' WHERE Student_Id = :student_id AND Subject_Id = :subject_id AND Professor_Id = :professor_id;
- System confirms the update and allows the professor to continue grading other students.
Note:
See TracWiki
for help on using the wiki.
