Answered step by step
Verified Expert Solution
Link Copied!

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
#get_ticket_price. get_ticket_price should have one
#additional parameter (other than self): quantity, an
#integer representing the number of tickets between 1 and
#10.
#
#get_ticket_price 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions