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="">"sorry,>
Provided text file:
icecream.txt
chocolate $15
strawberry $10
vanilla $13
rainbow $10
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here