Menu

Uncle Bob Knows Taking Computer Science Classes Wants Design Program Small Town Grocery St Q43877579

Uncle Bob knows that you have been taking computer scienceclasses and wants you to design a program for his small-towngrocery store. He doesn’t use bar codes and fancy equipment. Hejust wants to be able to input a cost for an item and whether ornot both the taxes are applied to it.

He wants the values to be stored so that they can be printed outlater. He has drawn up his idea of what he thinks his input andoutput should look like:

cost? 7.70tax? (y/n) ycost? 5.23tax? (y/n) ncost? 8.90tax? (y/n) ycost? 11.21tax? (y/n) ycost? 6.32tax? (y/n) nFor your review, here are your values: Cost Tax 7.70 0.77 5.23 0.00 8.90 0.89 11.21 1.12 6.32 0.00 —————— 39.36 2.78Your total bill is: 42.14

Your task is to implement Uncle Bob’s idea. To keep thingssimple, you can assume that each “customer” will have five items,and that the “teller” will never make a mistake typing. (O.K, theseare pretty unbelievable, but we are trying to keep it simple)

Write the code in c++.

Expert Answer


Answer to Uncle Bob knows that you have been taking computer science classes and wants you to design a program for his small-town …

OR