Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Draw a state machine diagram for an object of session class based on the above description. (15 points) 2. Draw an activity diagram for
1. Draw a state machine diagram for an object of session class based on the above description. (15 points)
2. Draw an activity diagram for Register use case, based on the narratives. Your diagram should include both the typical course of events and the alternate course of events. (15 points)
Class diagram (entity classes only) course +ID +course name +number of credits +prerequisites tupdate () +remove () +Check Pre-req ) 1 Session +CRN +Location Enrollment Record Student +UIN +Name +Major +Date added 1 1+Date +Date dropped +Grade +Register () +Drop () +Time +status +Open() +Close ) Use case narrativpe: Register Use case name: Register Actor: Student Description: This use case allows a student to register for one session of a course Pre-condition: The students has logged in. The course and session exist. Post-condition: The student has registered a session. Tvpical Course of Events 1. The student requests the option to register 2. The system displays a blank registration form, asking for the CRN number of the session 3. The student enters the CRN of the session and selects "submit." 4. The system verifies that the session is open. 5. The system then verifies that the student has the necessary prerequisites 6. The system then adds the student and the selected session to the enrollment records Alternate Course of Events Alt-4. If the course is closed, the system will display an error message Alt-5. If the student doesn't have the prerequisites, the system will display an error message Class diagram (entity classes only) course +ID +course name +number of credits +prerequisites tupdate () +remove () +Check Pre-req ) 1 Session +CRN +Location Enrollment Record Student +UIN +Name +Major +Date added 1 1+Date +Date dropped +Grade +Register () +Drop () +Time +status +Open() +Close ) Use case narrativpe: Register Use case name: Register Actor: Student Description: This use case allows a student to register for one session of a course Pre-condition: The students has logged in. The course and session exist. Post-condition: The student has registered a session. Tvpical Course of Events 1. The student requests the option to register 2. The system displays a blank registration form, asking for the CRN number of the session 3. The student enters the CRN of the session and selects "submit." 4. The system verifies that the session is open. 5. The system then verifies that the student has the necessary prerequisites 6. The system then adds the student and the selected session to the enrollment records Alternate Course of Events Alt-4. If the course is closed, the system will display an error message Alt-5. If the student doesn't have the prerequisites, the system will display an error messageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started