Question: Create a shopping cart app in C++ that does the following: Allow the shopper (user) to enter in the product name and the cost. This

Create a shopping cart app in C++ that does the following:

Allow the shopper (user) to enter in the product name and the cost. This should be echoed and confirmed. (using a char array)

Make sure to check for bad data. (checks if there is a char in price value, checks to see if its a valid price, no negative numbers)

The user should be allowed to continue this until they want to check out.

Your program needs to keep a running total.

Upon checkout, the grand total should be displayed.

Display money using proper formatting. You will need to have the following before

displaying dollars and cents:

***

1. You must use arrays and no classes.

2. You must use cstrings and not the string class.

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!