Question: Write a function ticketPrice ( age , movieType ) for a movie theater that has two parameters: user's age and type of movie they want
Write a function ticketPrice age movieType for a movie theater that has two parameters: user's age and type of movie they want to watch regular or D
ticketPrice will return the price of the ticket.
Implement a pricing system where:
a Regular tickets are $ for ages and older and $ for ages
bD tickets are $ for ages and older and $ for ages
Examples:
ticketPriced returns
ticketPrice'regular' returns
ticketPriced returns
ticketPrice'regular' returns
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
