Use Case Diagrams - Practice Questions
Use Case Diagrams - Practice Questions
The following is a description of the activities of a box office clerk interacting with a
theatre ticket booking system. On receiving a request for tickets from a customer, the
clerk must firstly set up an order on the system. She then asks the customer if the order is
a single order or a subscription order. Members of the theatre are entitled to place
subscription orders.
If a single order, the clerk assigns the seats on the system and charges the customer's
credit card.
If on the other hand, it is a subscription order, the clerk assigns the seats and debits the
customer's account at the same time as awarding the customer a member's bonus. In
both cases, the final step is to send out the tickets.
1
Exercise 2
ABC Kids playgroup is an after-school club for children under 12. The club wishes to keep information on the
children and the staff who work there. Two types of staff are employed: secretaries and playworkers. Personal
details, such as name and address, are recorded for all staff, and if they are a playworker, they must also pass a
police check. The system must record when this has been passed and when it must be renewed, because a play
worker cannot work with the children until this condition is met. When a child starts at the club, a secretary
records personal details such as name, address, date of birth and at least one emergency contact number, up to a
maximum of three. As part of the registration process, the secretary also records who can collect the child and
their contact details. The play worker will use these contact details, so that they can check that the person
collecting the child at the end of a session is authorized to make the collection. Some children have special
circumstances (e.g., suffers from asthma) which are treated with medication, and the secretary will record what
the condition is, what medicine can be used, and what to do in an emergency. There are different groups a child
can join, after an initial assessment, the playworker is responsible for allocating each child to a group appropriate
to their age and ability. Each week the playworker will generate a letter for the parents to advise them which
activities their children will take part in. At the end of each month, the secretary will generate an invoice for the
parents to pay.
1. Draw a use case diagram for the above given scenario.
2. Write down a use-case scenario for a selected use case from the above diagram.
2
Exercise 3
Hairdresser system
A customer can call "The Scissors" to place an appointment for a haircut or a blow dry. Then Annie,
the receptionist asks the date and time and the haircutter, if the customer is a regular customer.
Then she enters those details (date/time/haircutter name) to the system and the system stores
them as a new appointment. If the customer is a new customer, receptionist enters only the date
and time, system will automatically add an available haircutter and then store the appointment.
Each and every haircutter can view his/her appointments. When a haircutter is on leave, he/she has
to call Annie and she will update the system. Sam, the stock keeper must update the stock details
when he issues any hair dressing products (Shampoo) to a haircutter or when a new delivery arrives
in the saloon. When entering details about a new delivery, if prices have changed while updating
the stock record, he must update the item prices too. Page1of 8 After a haircut or a blow dry
customer will pay John the cashier, who will record the payments in the system. Sometimes
customers may ask about prices of hair dressing products or cost of different hair styles. Then John
will check the prices of the products and provide those details to the customers.
1. Draw a use case diagram for the above given scenario