5. There are three categories for movie tickets, with the following prices: General admission: $12.50 Senior...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Here is a Python program that accomplishes the task of calculating the total amount based on the num... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Calculate the anion gap for a 58 year old insulin dependent diabetic woman who is admitted to the emergency room in a comatose state Na-135mmol/L K= 3.5 mmol/L CI-102 mmol/L HCO3-= 15mmol/L. Include...
-
On July 31, 2014, Lee Mache, MD, had the following balances in the ledger for his medical practice: Cash $8,800; Accounts Receivable $2,750; Supplies $585; Equipment $15,550; Notes Payable $10,000;...
-
The transactions and adjustments related to the second month of operations of Zoe Amelia Corp. were as follows: a. Paid wages that had been accrued at the end of the prior month. b. Collected...
-
How might a hacker access and manipulate a digital device for illegal purposes? Are the Internet of Things (IoT) devices at risk for hacker access and manipulation?
-
You have $1,000,000 worth of equipment at the job site and wish to minimize your risk of direct property damage by taking out an insurance policy. The insurance company provides you with its...
-
The given code starts by initializing some sets and functions f , g , and h . Block 1 is a function ( called hasInverse ) that takes as input another function ( called func ) , and two sets ( D and T...
-
If 37.3g of C_(2)H_(5)OH(MM)=(46.07(g)/(m)ol) are added to a 500.0mL volumetric flask, and water is added to fill the flask, what is the concentration of C_(2)H_(5)OH in the resulting solution?
-
Discuss three examples of ethical challenges that HR professionals may encounter as they apply to modern organizations. Discuss how you would address each situation (not necessarily the solution, but...
-
Duo, Inc., carries two products and has the following year-end income statement (000s omitted): If products AR-10 and ZR-7 are substitutes for each other, a sales mix and sales volume variation for...
-
Based on the following, compute the amount of sales: Profit margin before tax based on sales 8% Margin of safety ratio 20% Fixed costs 1,200,000 Variable cost of goods sold 25% What is the variable...
-
Andy contracted to sell some "land". Before completion of the contract, Andy removed the curtains, the built-in wardrobe and the TV satellite disc from the house (and, therefore, aspects that might...
-
Use data to describe what makes Toyota Motor Corporation a multinational corporation. Provide an economic rationale that links the growth or success of the company with one of the trade theories...
-
M/s. Gharib LLC produces five products, ACE, BEE, CEZ, DIV and EVA, all from the same material. Until now, it has used traditional absorption costing to allocate overheads to its products. The...
-
On the basis of the details of the following fixed asset account, indicate the items to be reported on the statement of cashflows: ACCOUNT Land ACCOUNT NO. Balance Date Item Debit Credit Debit Credit...
-
The liquid-phase irreversible reaction A B + C is carried out in a CSTR. To learn the rate law, the volumetric flow rate, 0 , (hence = V/ 0 ) is varied and the effluent concentrations of species A...
-
What assumptions were made in the derivation of the design equation for: (a) The batch reactor (BR)? (b) The CSTR? (c) The plug-flow reactor (PFR)? (d) The packed-bed reactor (PBR)? (e) State in...
-
A first-order reaction is taking place inside a porous catalyst. Assume dilute concentrations and neglect any variations in the axial (x) direction. a. Derive an equation for both the internal and...
-
Discuss how a new brand manufacturer would go about defining their market segments and then begin to target them.
-
Go to www.kellogs.com, and examine the brands offered by Kelloggs. Using the BCG growth-share matrix, classify 10 brands as stars, question marks, cash cows, or dogs. Find at least one product you...
-
Diff Eyewear is a successful business built around a socially conscious mission. The company makes and sells stylish eyewear with comparable quality but a significantly lower price than luxury...
Study smarter with the SolutionInn App