Class Activity 1 - UseCaseDiagram-Practice Exercise - Solution (Software Engineering)
Class Activity 1 - UseCaseDiagram-Practice Exercise - Solution (Software Engineering)
Exercise 1
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
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
Solution:
3
Exercise 3
Bank ATM
Exercise 4
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.