Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock

You can implement the ticketPrice function in Python to achieve the d... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!