Answered step by step
Verified Expert Solution
Question
1 Approved Answer
YUMMY Cafe is a western cafe that offers variety of western food for its customers. The following table depicts the products available for this cafe.
YUMMY Cafe is a western cafe that offers variety of western food for its customers. The following table depicts the products available for this cafe. Price per item (RM) Product Menu Code Adult Senior Children (7 Children Citizen 12 years old) (Below 7 years old) 1 Lamb Grill 18.50 20% off 10% off Free 2 Beef Grill 16.00 20% off 10% off Free 3 Chicken Grill 13-50 20% off 10% off Free 4 Meatball Bolognese 10.50 20% off 10% off Free Write a complete C++ program that can perform the following tasks: a) Calculate the total amount that the customer must pay. Consider the following cases into the calculation: A senior citizen gets a 20% off the menu's price. i. Children aged 7 until 12 years old get a 10% off the menu's price while children who are less than 7 years old can eat for free. . The total amount should include 6% of government tax. iv. A 10% dollar-off discount is given to any amount payment that exceeds RM 500 in a single receipt. v. A5% group discount is given if there are at least 10 people eating in a single receipt. b) Generate a receipt for each customer using the format as shown in Figure 1. c) The user is then asked whether to proceed with the next customer or not. If he chooses to proceed, then the program starts a new data entry from the beginning. On the other hand, if the user chooses to stop, then the program will display the total sales for YUMMY Caf on that day, as shown in Figure 2. 1 WELCOME TO YUMMY CAFE Customer Name: SAM SMITH Contact No.: 013-4457876 aty: aty: Your Order Details Menu: Lamb Grill Meatball Bolognese | Number of Adults: 12 | Number of Senior Citizen: 101 Number of children (7-12 years): | 0 Total Price: RM 58.00 Plus 6% govt. tax. RM 61.48 Deductibles: 10% dallar-off discount : RMO 5% group discount:RMO GRAND TOTAL: RM 61.48 Thank you. Please Come Again. Figure 1: A receipt generated for a customer 19 YUMMY CAFE November 2021, 6.10 pm TOTAL SALES TODAY: RM 5400.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started