You are on page 1of 4

CSCI380 Week 6 - Exercise Spring 2019-2020

Use Case Modeling

Vending Machine

A Vending Machine is a computerized machine that sells beverages and snacks. This
system contains the following information:

1. A client can:
a. Choose a good which can be a beverage or a snack by inputting a code of
the beverage or the snack.
b. Input coins to pay for the good.
c. Confirm buying the good and retrieve it.
d. Cancel buying the good and retrieve coins.
e. Call the assistant operator if a problem occurs with the machine.
2. An angry client can kick the machine.
3. The assistance operator can:
a. Receive the calls from clients
b. Fix the machine either by refill it or fix any electronic problem.

Questions:

Draw the use-case model diagram:

a. Show the interaction between actors and each of the use-cases in the system
b. Show the dependencies among use cases (initiates, includes, extends, or depends
on).

Lebanese International University Page 1


CSCI380 Week 6 - Exercise Spring 2019-2020

Solution:

Use Case Diagram

Lebanese International University Page 2


CSCI380 Week 6 - Exercise Spring 2019-2020

Medical Clinic System

Medical clinic system is an application used by most of the doctors to keep track of all
the patient information including appointment, medical records, and medication
payments. This system contains the following information:

1. The patient can:


a. Make an appointment,
b. Cancel an appointment,
c. Pay the bill either cash money or through an insurance company. However,
the bill can be paid through deferred payments (deferred means many
payments of smaller amount of money).
2. The scheduler, as well, can:
a. Make the appointment for the patient.
b. Cancel the appointment for the patient
3. Any appointment taken needs to check the patient record.
4. The doctor can request medication for the patient.
5. Any medical request needs to check the patient record.
6. The clerk takes the payments from the patient.

Questions:

Draw the use-case model diagram:

a. Show the interaction between actors and each of the use-cases in the system
b. Show the dependencies among use cases (initiates, includes, extends, or depends
on).

Lebanese International University Page 3


CSCI380 Week 6 - Exercise Spring 2019-2020

Solution:

Use Case Diagram

Lebanese International University Page 4

You might also like