Student on Wednesday with early bird
Input
compute_ticket_price(20, True, 'Wednesday', True)
Output
7.0
Base 20 -> student 50% -> 10 -> wednesday 10% -> 9 -> early bird -2 -> 7. Final: 7.0
Full lesson preview
Compute the final ticket price applying multiple, ordered discounts and surcharges.
Problem statement
Task
Examples
Input
compute_ticket_price(20, True, 'Wednesday', True)
Output
7.0
Base 20 -> student 50% -> 10 -> wednesday 10% -> 9 -> early bird -2 -> 7. Final: 7.0
Input format
Output format
Constraints
Samples
Input
compute_ticket_price(70, False, 'Sunday', False)
Output
19.0
Base 20 -> senior 30% -> 14 -> weekend +5 -> 19. Final: 19.0