
a. cinema.py – Cinema class
b. imax_cinema.py – IMAXCinema class
c. cinema_system.py – CinemaSystem
a. name – String
b. base_price – Integer
c. type – String
Default value “Regular Cinema”
<name> – $<base_price> – <type>
Example:
CGV – $10 – Regular Cinema
tickets – Integer
This method will calculate the total ticket price using the formula:
tickets * base_price
This method will return the total ticket price.
a. This class needs to inherit from Cinema class
b. This class needs to have attribute:
self.type = “IMAX Cinema”
c. This class needs to override the method:
get_ticket_price(self, tickets)
Inside this method, ticket price will be calculated using:
tickets * base_price * 1.5
This method must also print:
“IMAX experience includes premium screen and sound!”
Dictionary key → cinema name
Dictionary value → either Cinema or IMAXCinema object
– Add cinema
– Buy tickets
– Exit
– Regular Cinema
– IMAX Cinema
Regular Cinema → represented by Cinema class
IMAX Cinema → represented by IMAXCinema class
When user selects Buy tickets, the system will:
– Display all cinemas in the system
– Ask user to select a cinema by name
– Ask user to input number of tickets
– Calculate total ticket price using: get_ticket_price(tickets)
– Display total price