Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#Create a class called TheaterTicket. TheaterTicket #should have two attributes ( instance variables ) : section #and matinee. Make sure the variable names match those
#Create a class called TheaterTicket. TheaterTicket
#should have two attributes instance variables: section
#and matinee. Make sure the variable names match those
#words. section will be a string; matinee will be a boolean.
#
#TheaterTicket should have a constructor with two required
#parameters, one for each of those attributes section and
#matinee in that order
#
#TheaterTicket should also have a method called
#getticketprice. getticketprice should have one
#additional parameter other than self: quantity, an
#integer representing the number of tickets between and
#
#
#getticketprice should return the price of the tickets
#represented by the instance. The price is determined first
#by section:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started