Case-Defined Function to represent price
Chong travel agent is having a FLIGHT TICKET SALES PROMOTION.
… The price of a ticket is RM 1800.
Volume Discounts are available:
… If you purchase less than 3 tickets, no discount is given.
… If you purchase between 3 and 8 tickets, you will get a 10% discount.
… If you purchase more than 8 tickets, a 15% discount. Construct a case-defined function to represent the price of buying n tickets.