Question: his lab is based on the PA 3 . 6 . 1 . Your goal is to write a function get _ ticket _ price

his lab is based on the PA 3.6.1.
Your goal is to write a function get_ticket_price(), that takes the following parameters:
a price (float)
an age (integer)
a student status (Boolean)
The function returns the computed movie ticket price.
Instructions to write the function
The function first checks the price:
If the base price is less than 1, the function returns 0 as an integer.
Otherwise, the function sets the ticket base price to be the provided base price parameter.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!