Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Implement a function ticketPrice (). The function asks the user to specify their name and age. The program will decide how much a
4. Implement a function ticketPrice (). The function asks the user to specify their name and age. The program will decide how much a ticket cost for a person. If the person is 13 or over the cost of the ticket is $30. If they are under 13, the cost is $15. The screenshot below illustrates the behavior. ticketPrice () Please enter your name: Tony Please enter your age: 99 Tony the price of your ticket is $ 30. ticket Price () Please enter your name: Sofia Please enter your age: 12 Sofia the price of your ticket is $15. ticketPrice () Please enter your name: Dominik Please enter your age: 13 Dominik the price of your ticket is $ 30 .
Step by Step Solution
★★★★★
3.37 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
You can implement the ticketPrice function in Python to achieve the d...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