Changes between Version 8 and Version 9 of UseCase2001Implementation
- Timestamp:
- 09/10/26 12:18:36 (8 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase2001Implementation
v8 v9 1 1 == UC2001 – Assign Grade to Student Implementation == 2 2 3 '''Initiating actor:''' Professor4 '''Other actors:''' None3 '''Initiating actor:''' Administrator 4 '''Other actors:''' Professor 5 5 6 6 '''Description:''' 7 Professor inputs and records final grades for students enrolled in specific subject course instances using the console interface.7 Administrator updates an existing student subject enrollment record via the Web UI dashboard to record and persist the final grade assigned by the professor. 8 8 9 9 '''Scenario:''' 10 1. System displays the Professor Menu interface. 11 2. Professor selects the option to "Assign Grade to Student". 12 3. System prompts the professor to input their unique Professor ID. 13 4. System retrieves and lists all unique subjects where this professor has active student enrollments: 10 1. Administrator navigates to the "Student Subject Enrollments" overview page from the Admin dashboard. 11 2. System queries the database and displays the list of active student enrollments: 14 12 {{{ 15 SELECT DISTINCT s.Id, s.Name 16 FROM Subject s 17 JOIN Student_Subject ss ON s.Id = ss.Subject_Id 18 WHERE ss.Professor_Id = ?; 13 SELECT Ss_Id AS ID, Student_Id, Subject_Id, Enrollment_Date, Status, Final_Grade AS Grade, Absences_Count AS Absences 14 FROM Student_Subject; 19 15 }}} 20 Professor inputs a target Subject ID from the displayed list. 16 [[Image(enrollment_table.png, 800px)]] 21 17 22 5. System lists all students currently enrolled in that chosen subject under this professor's instruction (including the Ss_Id discriminator): 23 {{{ 24 SELECT ss.Ss_Id, st.Id AS Student_Id, st.Name, st.Surname 25 FROM Student st 26 JOIN Student_Subject ss ON st.Id = ss.Student_Id 27 WHERE ss.Subject_Id = ? AND ss.Professor_Id = ?; 28 }}} 29 Professor inputs the target Student ID and Ss_Id. 18 3. Administrator locates the target enrollment record and clicks the "Edit" button next to it. 19 4. System presents the "Enroll Student / Edit Enrollment" web form pre-filled with the existing enrollment details. 30 20 31 6. System prompts the professor to provide a valid final grade value (constrained between 6 and 10). 32 7. System executes the parameterized SQL statement to persist the final grade using the full composite primary key and correct ENUM value: 21 [[Image(edit_enrollment_form.png, 800px)]] 22 23 5. Administrator inputs or updates the "Final Grade" field (valid values between 6 and 10) and updates the "Status" dropdown to 'Passed' (or 'Completed'). 24 6. Administrator clicks the "Save Record" button. 25 7. System executes the parameterized SQL update statement to persist the updated grade and status: 33 26 {{{ 34 27 UPDATE Student_Subject 35 28 SET Final_Grade = ?, Status = 'Passed' 36 WHERE S tudent_Id = ? AND Subject_Id = ? AND Ss_Id = ?;29 WHERE Ss_Id = ?; 37 30 }}} 38 8. System displays a confirmation text message indicating that the grade was successfully assigned.39 31 40 == Implementation Screenshots == 41 [[Image(assignGrade1.png, 800px)]] 42 [[Image(assignGrade2.png, 800px)]] 43 [[Image(assignGrade3.png, 800px)]] 44 [[Image(assignGrade4.png, 800px)]] 32 8. System redirects back to the "Student Subject Enrollments" page showing the updated grade and status in the table. 33 34 [[Image(enrollment_table.png, 800px)]]
