Professional Documents
Culture Documents
ASSIGNMENT-1
BATCH-21
ONLINE TICKET RESERVATION
Done by
Relationships:
• Customer -> Search Shows
• Customer -> Select Seats
• Customer -> Make Payment -> Payment Gateway
• Customer -> View Ticket
• Customer -> Cancel Ticket
• Admin -> Authenticate
• Admin -> Update Show
• Admin -> View Reports
• Database -> Stores data for all use cases
V
Class Diagram:
Certainly! A class diagram for an online ticket reservation
system would typically consist of several classes, each
representing different entities in the system, along with their
attributes, methods, and relationships.
Classes
1. User
oAttributes: userID, username, password,
email
o Methods: login(), logout(), register(),
updateProfile()
2. Ticket
o Attributes: ticketID, seatNumber, price,
status
o Methods: book(), cancel(), update()
3. Event
o Attributes: eventID, eventName, location,
time
o Methods: createEvent(), updateEvent(),
deleteEvent()
4. Payment
o Attributes: paymentID, amount,
paymentMethod
o Methods: makePayment(), refund()
5. Seat
o Attributes: seatID, seatType, availability
6. Venue
o Attributes: venueID, name, location
event.
3. Event - Venue: Many-to-one
o Multiple events can occur at a single venue.
with it.
5. Event - Seat: One-to-many
o An event has multiple seats, but each seat is