subject

Have you ever been low on cash and couldn’t go beyond a certain dollar limit when shopping? You sort of need a calculator in your head. It would be cool if a device was actually part of the cart and as you add an item into the cart it would increment your total counter. To solve this, we are going to write a program that keeps a tally of the amount that we have spent so far as we visit a store. What Your Program Should Do:
1. Allow the shopper (user) to enter in the product name and the cost. This should be echoed and confirmed. Make sure to check for bad data.
2. The user should be allowed to continue this until they want to check out.
3. Your program needs to keep a running total.
4. Upon checkout, the grand total should be displayed. 5. Display money using proper formatting.
You will need to have the following before displaying dollars and cents:
cout. setf(ios::fixed, ios::floatfield); cout. setf(ios::showpoint); cout. precision(2);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Asoftware company hired ray, a college graduate to work in their development team. ray is assigned to work in the coding phase of a project. what happens during the coding phase of a software development project? a. the customer receives a working model of the software. b. developers convert the program design into code. c. developers gather requirements directly from the stakeholders. d. testing teams check the product for quality.
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
You know the right answer?
Have you ever been low on cash and couldn’t go beyond a certain dollar limit when shopping? You sort...
Questions
question
Biology, 30.01.2020 06:52
question
Mathematics, 30.01.2020 06:52
question
Mathematics, 30.01.2020 06:52
question
Mathematics, 30.01.2020 06:52