A small cinema requires the cashier to calculate a customer’s ticket price using these rules:
Write a function (or functions, your choice) called ticketPrice to retrieve the correct final price. The function should be callable either with:
Think about which parts of this should be handled with a default argument versus a separate overload.
Write a main that calls ticketPrice for a few different customers and prints each price, matching this output:
Child, daytime: $6.00
Adult, evening: $12.00
Senior, daytime: $7.00
Adult, evening: $12.00