164k views
1 vote
A local cinema allows customer to make a movie ticket reservation. A customer can be

ordinary or privilege member. During ticket reservation, an ordinary customer will be
allocated with normal room, and privilege member will be allocated with luxurious room.
Inside the luxurious room, the privilege customer can enjoy services such as dinning, or
gaming services. The payment can be done in cash, or credit.
You need to design at least another two features of it. You need to draw a class diagram for
cinema ticketing reservation system.

1. Identify and briefly explain the objects, classes, methods and attributes for the Cinema
System.

1 Answer

4 votes
In cinema, people usually purchase a ticket after, they pay money for a certain show. So based on that we can design the software system like below to store each transaction that has details about purchaser of ticket, show details and so on.
Transactions: Class used to create transaction in a cinema hall

Attribute:-

Name: Name of person Age:

Age of Person

Phone Number: Phone number

Email: email of person

customer_type: type of customer (can be ordinary or privilege)

room_type: type of customer (can be ordinary customer_type normal else luxurious)

date: transaction date

payment_mode: Transaction can be either done in cash or credit amount: amount of ticket

ticket_time: time of show
methods:
create_transaction(name, phone, email, date, payment_mode, amount, ticket_time): creates a history of a transaction after a ticket has been purchased
User Mina Matta
by
7.0k points