Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. There are three categories for movie tickets, with the following prices: General admission: $12.50 Senior citizen: Child under 10: $11.00 $9.00 Write a

image text in transcribed  

5. There are three categories for movie tickets, with the following prices: General admission: $12.50 Senior citizen: Child under 10: $11.00 $9.00 Write a Python program that prompts the customer for the number of tickets of each type, and prints the total amount for all of the tickets purchased. A sample runs: >>> main() How many general admission tickets? O How many senior citizen tickets? O How many child tickets? 1 Your total comes to $ 9.0 >>> main() How many general admission tickets? 2 How many senior citizen tickets? 1 How many child tickets? 1 Your total comes to $ 45.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is a Python program that accomplishes the task of calculating the total amount based on the num... 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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

Graph the solution set to the inequality. 2x + 3y = 6

Answered: 1 week ago