Question: Write a python program Movie _ Ticket Price - py to calculate the movie ticket prices. In your program write a function named calculate ticket
Write a python program MovieTicket Pricepy to calculate the movie ticket prices. In your program write a function named calculate ticket pricebase price, age, is member to calculate the final ticket price based on these rules:
Agebased Discounts:
Children or under receive a discount.
Seniors or older receive a discount.
No discount for others.
Membership Discount:
If the customer is a premium program member, they receive an additional discount on the price after applying the agebased discount.
Assume:
baseprice is a float value representing the total ticket price cost before the discount.
age is an integer representing the customer's age.
is member is a Boolean indicating membership status True if the customer is a loyalty program meber, False otherwise
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
