user for membership card using confirm dialog box. If "Yes", they are entitled for 15% discount from the total amount purchased. If "No", no discount available. Your code will acquire the user for the product code and the quantity that the user wanted to purchase. You may use sentinel value. 1. Given the price list as follows: PRODUCT CODE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 CATEGORY Cloths Cloths Cloths Cloths Electrical Electrical Electrical Electrical Household Household Household Grocery Grocery Grocery PRODUCT Sports Shoe Men's T-Shirt Slim Fit Pants Jeans Fan Iron Rice-Cooker Toaster Knife PRICE >RM2000 Frying Pan Cup Rice (10kg) Oil (1kg) Butter (250g) >RM1000 >RM500 >RM200 Your program will calculate and display all the products purchased and the total amount of the price to be paid. Prompt a message to do the payment, if the amount paid is less than the amount purchased do display an error message and urge the user to key in the amount again. Your code will calculate and display the change amount to be returned. If the user bought either product code 1, 4 or 10 and the total price more than RM200 (for each product code purchased) they are entitled for RM15 rebate voucher. If the user purchasing any one product from electrical category and it must be more than RM50, they are entitled for RM5 special rebate voucher (for each product). These vouchers can be redeemed immediately meaning that the voucher price will be deducted from the total purchased amount. PRICE RM134.55 Apart from that your program can also give a discount on the total purchase price as follows: DISCOUNT 30% RM54.29 RM64.35 RM184.20 RM55.59 15% 7% 2% RM24.45 RM51.99 RM24.76 RM12.49 RM138.37 RM2.34 RM23.39 RM12.45 RM6.56
Fig: 1