A new bakeshop is giving 50% off on all its products for its first 20
customers (regardless of age) for the store opening. After the 20th
customer, there will 10% discounts and all senior citizens receive an
additional 20% discount.
Write a pseudocode and create PHP program that performs the
necessary calculations, using Switch statement. Your program should
prompt the user for the total amount, calculate and display appropriate
discounts. Make the program as realistic as possible.
Comments
Leave a comment