
π Student Projects (College Reports) Β· Use Case
Guests, front desk staff and the hotel manager in an online room booking system, with the payment gateway as an outside actor.
Drawing diagramβ¦
Use case diagram for a hotel room booking system: a guest searches rooms, books a room, pays online, cancels a booking and gives feedback; the receptionist checks guests in and out and handles walk-in bookings; the manager manages rooms and rates and views occupancy reports; the payment gateway processes payments. Booking a room includes making a payment; cancelling extends a booking.
flowchart LR
guest(["π€ Guest"])
desk(["π§βπΌ Receptionist"])
manager(["π‘οΈ Hotel Manager"])
pay(["π³ Payment Gateway"])
subgraph SYS ["π¨ Hotel Room Booking System"]
UC1(["Search rooms"])
UC2(["Book room"])
UC3(["Make payment"])
UC4(["Cancel booking"])
UC5(["Give feedback"])
UC6(["Check guest in"])
UC7(["Check guest out"])
UC8(["Walk-in booking"])
UC9(["Manage rooms and rates"])
UC10(["View occupancy report"])
end
guest --> UC1
guest --> UC2
guest --> UC5
desk --> UC6
desk --> UC7
desk --> UC8
manager --> UC9
manager --> UC10
UC3 --> pay
UC2 -.->|"includes"| UC3
UC4 -.->|"extends"| UC2Who uses a college library system and what each of them can do: members, the librarian and the system administrator.
The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.
How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.
The main classes of a library system with attributes, methods and UML relationships.
The steps when a member borrows a book: checks, loan record and the copy status update.
What students, examiners and the administrator do in an online examination system.