Skip to content

Python project for a hypothetical "Star Cinema" could involve developing a simple movie theater management system. This project could include functionalities like listing available movies, booking tickets, and managing showtimes.

License

Notifications You must be signed in to change notification settings

shakiliitju/Star-Cinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Star Cinema

  1. Make a class named Star_Cinema which will have one class attribute named hall_list which is an empty list initially. Make a method named entry_hall() to insert an object of class Hall (Described below) inside its hall_list.

  2. Make a class named Hall which will have 5 instance attributes given below
    a. seats which is a dictionary of seats information
    b. show_list which is an list of tuples
    c. rows which is the row of the seats in that hall
    d. cols which is the column of the seats in that hall
    e. hall_no which is the unique no. of that hall
    Initialize an object of class Hall with rows, cols and hall_no. And insert that object to the Star_Cinema class attribute named hall_list inside the initializer using inheritance. seats and show_list will be empty initially.

  3. Make a method in Hall class named entry_show() which will take id, movie_name and time in string format. Make a tuple with all of the information and append it to the show_list attribute. Allocate seats with rows and cols using 2d list, initially all seats will be free. Make a key with id to the attribute seats and value will be the 2d list.

  4. Make a method in Hall class named book_seats() which will take an id of the show and list of tuples where every tuple contains the row and col of the seat. You need to check the id of the show, and book the seats.

  5. Make a method in Hall class named view_show_list() which will view all the shows running.

  6. Make a method in Hall class named view_available_seats() which will take an id of show, and view the seats that are available in that show

  7. Make a replica system so that the counter can view all shows that are running, view available seats in a show and can book tickets in a show.

  8. You need to handle the errors, for example-
    a. If someone gives a wrong id of a show
    b. If someone tries to book a seat that is invalid
    c. If someone tries to book a seat that is already booked

  9. Make the information of the classes as protected/private as you can so that the attributes can’t be accessed outside the class.

About

Python project for a hypothetical "Star Cinema" could involve developing a simple movie theater management system. This project could include functionalities like listing available movies, booking tickets, and managing showtimes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages