UML Use Case Diagram Lab Task Exercise-2
UML Use Case Diagram Lab Task Exercise-2
EXERCISE 1
Draw a UML Use Case diagram for the detailed use case.
Use Case – Buy a Product
2) Inserts card Check invalid PIN or Invalid Card through PIN validation
3) Use can be a web merchant, bank employee, bank database, Retail institution
5) Online transaction is done through login and validate for valid/invalid login
Design a UML Use case diagram using <<include>> <<extend>> and super type and sub type use
cases.
EXERCISE 3
Create a use case diagram for the below problem statement
The task is, of constructing the design elements for a system that can be used to manage
courses/classes for an organization that specializes in providing training. Let us name the system that
we will be designing as the Courseware Management System. The organization offers a variety of
courses in a variety of areas such as learning management techniques and understanding different
software languages and technologies. Each course is made up of a set of topics. Tutors in the
organization are assigned courses to teach according to the area that they specialize in and their
availability. The organization publishes and maintains a calendar of the different courses and the
assigned tutors every year. There is a group of course administrators in the organization who manage
the courses including course content, assign courses to tutors, and define the course schedule. The
Page 1 of 3
training organization aims to use the Courseware Management System to get a better control and
visibility to the management of courses as also to streamline the process of generating and managing
the schedule of the different courses.
The problem statement shows up the following terms and entities specific to the system:
EXERCISE 4
Page 2 of 3
EXERCISE 5
Vending Machine: Use Case Diagram
Model with a UML Use Case diagram the following System: Vending Machine.
A vending machine sells small, packaged, ready to eat items (chocolate bars, cookies, candies, etc.).
Each item has a price and a name. A customer can buy an item, using a smart card (issued by the
vending machine company) to pay for it. No other payment forms (i.e. cash, credit card) are allowed.
The smart card records on it the amount of money available. The functions supported by the system
are:
- Sell an item (choose from a list of items, pay item, distribute item)
- Recharge the machine
- Set up the machine (define items sold and price of items)
- Monitor the machine (number of items sold, number of items sold per type, total revenue) The
system can be used by a customer, a maintenance employee (who recharges items in the machines),
an administrator (who sets up the machine).
-THE END-
Page 3 of 3