
π Student Projects (College Reports) Β· Sequence
Booking a hotel room online, from the availability search to the confirmation email.
Drawing diagramβ¦
Sequence diagram for booking a hotel room online: the guest searches dates on the website; the booking service checks availability in the database; the guest picks a room, which is held for 10 minutes; the payment gateway charges the guest; on success the booking is confirmed and an email is sent; on failure the hold is released.
sequenceDiagram
actor G as Guest
participant W as Website
participant B as Booking Service
participant DB as Database
participant P as Payment Gateway
participant E as Email Service
G->>W: Search dates and guests
W->>B: Check availability
B->>DB: Query free rooms
DB-->>B: Available rooms
B-->>W: Rooms and prices
G->>W: Choose room and pay
W->>B: Create booking
B->>DB: Hold room for 10 minutes
B->>P: Charge amount
alt Payment successful
P-->>B: Success
B->>DB: Confirm booking
B->>E: Send confirmation
E-->>G: Booking email
else Payment failed
P-->>B: Failed
B->>DB: Release hold
B-->>W: Show payment failed
endWho 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.