Define a class called Movie that maintains the title of a movie as well as the a
ID: 3637247 • Letter: D
Question
Define a class called Movie that maintains the title of a movie as well as the amount ofearnings it has made since it opened at the theatre.
• Define a class called Theatre that keeps track of the Movie object that is currently playing in
that theatre. A theatre should also have a seat capacity and keep track of how many seats
have been sold for the movie playing.
• Define a class called Ticket that represents a ticket to go and watch a movie. Each ticket is
only valid for a specific Theatre object.
• Define a class called Patron that keeps track of the age of a person as well as the Ticket
object that he/she has purchase
Explanation / Answer
• Define a class called Theatre that keeps track of the Movie object that is currently playing in that theatre. A theatre should also have a seat capacity and keep track of how many seats have been sold for the movie playing. class Movie { string title; int earning; } class Theatre { Movie current_movie; int seat_capacity; int booked_seat; } class Ticket { Theatre name; } class Patron { int age; Ticket person_ticket; }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.