0% found this document useful (0 votes)
20 views5 pages

Class Activity 1 - UseCaseDiagram-Practice Exercise - Solution (Software Engineering)

The document provides examples of use case diagrams for different scenarios: a holiday home room reservation system, an ATM banking system, and an online food ordering system. For each scenario, actors and their interactions are identified and a use case diagram is drawn as a solution.

Uploaded by

Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

Class Activity 1 - UseCaseDiagram-Practice Exercise - Solution (Software Engineering)

The document provides examples of use case diagrams for different scenarios: a holiday home room reservation system, an ATM banking system, and an online food ordering system. For each scenario, actors and their interactions are identified and a use case diagram is drawn as a solution.

Uploaded by

Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

Use Case Practice Exercise:

Exercise 1

Draw a use case diagram for the following problem:


Company has several holiday homes in their possession and it rents them to employees.
Company wants an information system that would allow room reservation on the net.

Employee will be able to reserve a room in desired holiday home for himself and his
family members. Besides he can review his reservations and be able to cancel them.

Holiday home manager will be able to do same things as employee - manager will be able
to add reservation , review reservations and cancel any reservation. Manager will also be
able to edit holiday home data

Administrator will have the same access as the manager and he is responsible to edit
Reservation data.
Everyone must log into the system before they can use it

Solution:
At first we have to identify all actors. In this case I think they are self-revealing
 Employee
 Manager
 Administrator

Then we should identify what they will do.


 reserve a room
 review reservation status
 cancel reservation
 edit holiday home data
 edit Reservation data.
 login

Now we just have to link this together. We use generalization between actors as manager
has the same use cases as employee and administrator has the same as manager plus he
can edit ciphers.

1
2
Exercise 2

Draw a use case diagram for the following problem:


An automated teller machine (ATM) or the automatic banking machine (ABM) is
banking subsystem (subject) that provides bank customers with access to financial
transactions in a public space without the need for a cashier, clerk or bank teller.
Customer (actor) uses bank ATM to check balances of his/her bank accounts, deposit
funds, withdraw cash and/or transfer funds (use cases). ATM
Technician provides maintenance and repairs. All these use cases also
involve Bank actor whether it is related to customer transactions or to the ATM
servicing.

Solution:

3
Exercise 3

Bank ATM

An automated teller machine (ATM) or the automatic banking machine (ABM) is


banking subsystem (subject) that provides bank customers with access to financial
transactions in a public space without the need for a cashier, clerk or bank teller.
Customer (actor) uses bank ATM to check balances of his/her bank accounts, deposit
funds, withdraw cash and/or transfer funds (use cases). ATM
Technician provides maintenance and repairs. All these use cases also
involve Bank actor whether it is related to customer transactions or to the ATM
servicing. Depict include and extend relationships as per your understanding.

Exercise 4

Online Food Ordering System

The customer can register an account on the website by providing their personal
information such as name, email, and contact details. The customer can log in to their
account by providing their registered email and password. The customer can browse the
menu items of the restaurant, filter the results based on category, and view details such as
ingredients and prices. The customer can select the desired menu items and place an
order by specifying the quantity and delivery details such as address and payment
method. The restaurant staff can confirm the order and estimate the delivery time. The
restaurant staff can prepare the order and mark it as ready for pickup or delivery. The
restaurant staff can assign the delivery person to pick up the order and deliver it to the
customer. The delivery person can pick up the order from the restaurant and deliver it to
the customer. The customer can track the status of their order, view the estimated
delivery time, and receive notifications for updates. The customer can make the payment
via credit / debit card or through cash and they can rate their order and provide feedback
to the restaurant.

4
Solution:

Actors:
Customer
Restaurant Staff
Delivery Person

Use Cases:

1.Register Account: The customer can register an account on the website by providing
their personal information such as name, email, and contact details.
2.Login: The customer can log in to their account by providing their registered email and
password.
3.Browse Menu: The customer can browse the menu items of the restaurant, filter the
results based on category, and view details such as ingredients and prices.
4.Place Order: The customer can select the desired menu items and place an order by
specifying the quantity and delivery details such as address and payment method.
5.Confirm Order: The restaurant staff can confirm the order and estimate the delivery
time.
6.Prepare Order: The restaurant staff can prepare the order and mark it as ready for
pickup or delivery.
7.Assign Delivery Person: The restaurant staff can assign the delivery person to pick up
the order and deliver it to the customer.
8.Deliver Order: The delivery person can pick up the order from the restaurant and
deliver it to the customer.
9.Track Order: The customer can track the status of their order, view the estimated
delivery time, and receive notifications for updates.
10. Make payment: The customer can make the payment via credit / debit card or through
cash.
11.Rate Order: The customer can rate their order and provide feedback to the restaurant.

This scenario describes an online food ordering system where customers can browse
menu items, place orders, and track the status of their orders. The restaurant staff can
manage the orders, prepare the food, and assign a delivery person to deliver the order to
the customer. The delivery person can pick up the order and deliver it to the customer.
The use case diagram can be created based on this scenario to provide a visual
representation of the interactions between the actors and the system.

You might also like