Functions - Make sure that the rogram will have user-defined functions (e.g.: function for adding nodes, function for displaying the cart, etc.) The program must have a menu where the user can select an action (e.g. Select product, View cart, Check out, etc.) Soda options: Coca-Cola, Pepsi, Sprite, Royal, Mountain Dew Tabular Format: In the table, you must includ

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
icon
Related questions
Question
  • Create a soda beverage shopping cart program using C++ implementing the following:
    • Linked List - this will be used as the user's cart. This is where the items that the user will purchased are stored here before checking them out.
    • Array - use arrays to store user's stored products.
    • Pointers 
    • Functions - Make sure that the rogram will have user-defined functions (e.g.: function for adding nodes, function for displaying the cart, etc.)
  • The program must have a menu where the user can select an action (e.g. Select product, View cart, Check out, etc.)
    • Soda options: Coca-Cola, Pepsi, Sprite, Royal, Mountain Dew
    • Tabular Format: In the table, you must include the code for each soda options, their price and quantity

 

The program must look like this:

Hi! Welcome to ABC GoDrink! Here are the drinks that we offer:

CODE PRODUCT SRP
a Coca-Cola 24.99
b Pepsi 22.99
c Royal 24.99
d Sprite 24.99
e Mountain Dew 22.99

Menu

  1. Select a product.
  2. View My Cart and Proceed to Check-Out
  3. Exit the program.
  4.  

What would like to do?: 1

Enter product code: a

How many Coca-Cola do you want?: 4

Add another item? (Yes or No) : No

 

 Here are the items that you've added to cart:

Code Product SRP Items Bought
a Coca-Cola 24.99 4
    Total Price: Php 99.96
    Thank you for shopping with us! This program is created by ABC Developers namely:
      • CesarRachelAngelTom

Please show the entire code and final output.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr