Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1 Ticket discount ( if statements / elif ) Tell the user that tickets cost 1 4 dollars. Then ask the user his age.
Part Ticket discount if statementselif
Tell the user that tickets cost dollars. Then ask the user his age. If the user's age is tell them that they can get a dollar admission for being a minor, If the users age is tell them that they can get a dollar admission for being a senior citizen, lastly let them know if they have to pay full price.
Alternative: Do I have enough? User wants to buy your product ask him how much money he has, calculate the price of your product plus its sales tax and then tell him if he can buy it or not and if he can then congratulate him on his purchase and let him know how much money he has left now
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started