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.

Sign up to view the entire interaction

Top Answer

Great question... View the full answer

program.py

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():
"))
"))
")) A =...

Sign up to view the full answer

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
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online