In C++, using STL algorithms, containers, or iterators, use the text file shoes.txt, where you want to sell a pair of shoes to a customer. The price must come from the text file, and can be used to...


In C++, using STL algorithms, containers, or iterators, use the text file shoes.txt, where you want to sell a pair of shoes to a customer. The price must come from the text file, and can be used to get the total for any shoe the user may choose. Once the user gets the price of the shoes and buys them, that item must be removed from the textile shoes.txt.




CONSOLE


cout < "hello.="" what="" shoes="" do="" you="" want="" to="">


cin >> heels;


cout < "="" that="" will="" be="" "="" shoe_price="" "!="" do="" you="" want="" to="" buy="">


cin >> Y;


cout < "thanks="" for="" the="" purchase.="" shop="" with="" us="" again="">


-------------------------------


heels are now removed from the text file.


The cout should return " That will be $20 ! " for the heels.


----------------------------------------------------



shoes.txt items:


heels $20


shoes $123


jordans $150


flats $25



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here