In C++, using STL algorithms create a program that allows the user to search the text file for a price, and return all items for the inputted price. Console: Enter the command: cin>> search What price...


In C++, using STL algorithms create a program that allows the user to search the text file for a price, and return all items for the inputted price.



Console:


Enter the command:


cin>> search


What price do you want to search for?


cin>> $10


cout < "the="" following="" flavors="" are="" $10="" "="">< flavor="">< flavor=""><>


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


Strawberry and rainbow should be returned for $10


If no flavor is $10:


cout<"sorry, that="" price="" is="" not="">




Provided text file:


icecream.txt


chocolate $15


strawberry $10


vanilla $13


rainbow $10



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here