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 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
If chris has a car liability insurance, what damage would he be covered for
Answers: 1
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
Social Studies, 12.10.2020 01:01
question
Mathematics, 12.10.2020 01:01
question
Mathematics, 12.10.2020 01:01
question
Spanish, 12.10.2020 01:01
Questions on the website: 13722361