View the step-by-step solution to:

# Theater Seating Revenue with Input Validation: A dramatic theater has three seating sections, and it charges the following prices for tickets in each...

Theater Seating Revenue with Input Validation:

A dramatic theater has three seating sections, and it charges the following prices for tickets in each section:

Section A seats cost \$20 each

Section B seats cost \$15 each

Section C seats cost \$10 each

The theater has 300 seats in section A, 500 seats in section B, and 200 seats in section C. Design a program, in python, that asks for the number of tickets sold in each section and then displays the amount of income generated from ticket sales. The program should validate the number that are entered for each section.

Great question... View the full answer

secA = 20 #Section A seats cost \$20 each
secB = 15 #Section B seats cost \$15 each
secC = 10 #Section C seats cost \$10 each
# take input from user
def getTickets():
&quot;))
&quot;))
&quot;)) A =...

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents