Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write a coding clearly for this question.I need to understand how to solve the coding. PART C (30 MARKS) QUESTION 1 MyCafe Outlet is

image text in transcribed

Please write a coding clearly for this question.I need to understand how to solve the coding.

PART C (30 MARKS) QUESTION 1 MyCafe Outlet is now venturing into a fast-food business In order to realize the business, a program to manage ordering and sales need to be developed The following table shows the selected items ITEM CODE M1 M2 M3 M4 PRICE RM4. 59 RM2.99 RM1.05 RM2.49 ITEM Chicken Burger Rainbow Fillet No-Salt Fries Soft-Drink The program should allow a user to input item code and its quantity User can make another order for other items by repeat the process until user enter 'N' or 'n' for stop. If user enters the same item code, its quantity will be updated. Display an error message for an invalid item code. Then display the details of order made by the customer (including of item name, quantity and total price of all items) Write the complete C++ program based on the format of input and the output should appear as the following sample output Enter item code (M1/M2/M3/M4)M2 Enter quantity 3 Do you want to make another order? (Y/N)Y Enter item code (M1/M2/M3/M4): M7 Enter quantity: 2 Wrong item code ! Do you want to make another order? (X/N)Y Enter item code (M1/M2/M3/M4): M4 Enter quantity3 Do you want to make another order? (Y/N) Y Enter item code (M1/M2/M3/M4): M2 Enter quantity 1 Do you want to make another order? (Y/N) N Menu Item Quantity Chicken Burger Rainbow Fillet No-Salt Fries Soft-Drink Total Price: RM14 (15 marks) e Hak Cipta Universiti Teknologi MARA CONFIDENTIAL ucnt totauPrie

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago