You are on page 1of 3

Ainshams University

Faculty of Engineering
CSE Department

Software Engineering
Assignment 4
Name: ‫عمر عبد العزيز مرجان عبد العزيز‬
Section: 2
ID: 1600885
Question 1:
Use case name: Issue new card.
Related requirement(s): Requirement B.1
Goal in context: Passenger gets a new charged card.
Preconditions: Passenger pays for subscription.
Successful end condition: New card is issued.
Failed end condition: New card is not issued.
Primary Actors: Passenger.
Secondary Actors: Clerk.
Trigger: Passenger asks for a new card.
Main flow: 1. Passenger asks for a new card.
2. Clerk asks for price category of card issued.
3. Right card is issued (card has full charge).
4. Passenger pays the price (subscription) & gets the card.
Extension: 3.1 Card is not charged.
3.2 Passenger asks clerk to recharge his card.

Question 2:
i) 1. Inpatient inherits Patient.
2. Outpatient inherits Patient.
3. Inpatient is treated in InpatientRoom.
4. Outpatient is sent to OutpatientClinic.
5. Nurse nurses Patient.
6. Physician treats Patient.
7. Physician does surgery at OperationRoom.
8. Inpatient has surgery at OperationRoom.
9. Physician sends prescription to Pharmacy.
10. Consultant checks Patient periodically.
(Assuming patient is abstract)
ii) Patient is abstract class; Inpatient & outpatient inherits from it and
must specify its behavior in each case.
iii)

You might also like