Question: 1 . Implement a program for C so that when the program starts, it should be able to immediately display the menu. Afterward, ask: Hi

1.Implement a program for C so that when the program starts, it should be able to immediately display the menu. Afterward, ask: Hi! Whats your order?
2.The User should be able to enter the drink as stated in the first column of the whole menu.
3. Afterward, they could select the size: (1) Tall, (2) Grande, (3) Venti
4. If it is one of the espresso beverages, the user should be able to enter whether it is hot or iced.
5. If it is one of the frappuccinos (i.e. blended coffee or cream), the user should be asked whether they would avail of any add-on/Substitute.
6. It should also be able to ask the quantity of each order.
7. It should keep asking for orders until the user entered done. Afterward, it should be able to display the summary of the order. The summary should be able to display the ff: beverage, quantity, subtotal, and grand total.
8. The system should have the capacity to order every product displayed on the screenshot of varying sizes and add-ons (if applicable).
The system uses the menu:
ESPRESSO & MORE
Espresso Beverages Tall Grande Venti
Caffe Americano 130145160
Cappuccino 140155170
Caffe Latte 140155170
Caffe Mocha 165180195
Caramel Macchiato 165180195
Flat White 165180195
White Chocolate Mocha 165180195
Espresso 120130
Cold Coffee Craft
Cold Brew 150165180
Vanilla Sweet Cream Cold Brew 165180195
Cold Foam Iced Espresso 165180195
Chocolate
Signature Hot Chocolate 150165180
White Hot Chocolate 150165180
Sample Walkthrough
Hi! What's your order? Cappuccino
How many? 1
What size? Grande
Is it hot or Iced? Iced
Anything Else? Java Chip
How Many? 1
What size? Venti
Any Add-ons/Substitute? Extra Shot
Anything Else? Done
Item
Price
Quantity
Subtotal
Cappuccino Iced Grande
155
Java Chip
1
155
200
Extra Shot
Note: The console should output exactly the same as the sample walkthrough.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!