Use Case Diagram Exercises Worksheet
Exercise 1:
Scenario:
A library system allows members to borrow books, return books, and search for books. Librarians can
register new members and manage inventory.
Tasks:
- List all the actors
- Identify at least 5 use cases
- Sketch a use case diagram showing relationships
Exercise 2:
Below is a partial use case diagram for an Online Shopping System. Fill in the missing elements:
Actors: [Customer], [System Admin]
Use Cases:
- Browse Products
- Add to Cart
- _________ (missing)
- Manage Inventory
- ____________ (missing)
Tasks:
- Fill in 2 missing use cases
- Add associations between actors and use cases
Exercise 3:
Scenario:
A student portal system includes functionality for:
- Students to view grades, register for courses, and update their profile
- Professors to submit grades and view enrolled students
- Admins to manage courses
Use Case Diagram Exercises Worksheet
Tasks:
- Identify actors and use cases
- Indicate any include/extend relationships
- Draw a complete use case diagram
Exercise 4:
Scenario:
In a ticket booking system, users can:
- Book tickets
- Cancel tickets
- Make payments (which is part of booking)
- Receive notifications (optional when booking or canceling)
Tasks:
- Identify "include" and "extend" use cases
- Draw the full use case diagram showing these relationships
Exercise 5:
Here is a flawed use case diagram. Identify at least 3 mistakes:
Actor: Student
Use Cases: View Grades, Login, Register
Mistakes to spot:
- All use cases floating with no actor connected
- Use cases labeled as system processes (e.g., "Process Grades")
- Use case "Login" connected to multiple actors without explanation
Tasks:
- List and correct the mistakes
- Sketch a corrected version of the diagram