IN C++ Given a vector of vectors of strings called items that contain items {{"Target", "LA", "Eggs,40,$0.78", "Candy,4,$0.51"}, {"Walmart", "MI", "Eggs,2,$0.50"},{"Kroger", "WI", "Soda,5,$1.56"}},...


IN C++


Given a vector of vectors of strings called items that contain items {{"Target", "LA", "Eggs,40,$0.78", "Candy,4,$0.51"}, {"Walmart", "MI", "Eggs,2,$0.50"},{"Kroger", "WI", "Soda,5,$1.56"}}, and another vector with the items you wanna shop, shopitems{"10 Eggs", "1 Candy"}. Say you want the items in shop items, how you iterate and grab the lowest-cost items, its name of store, its location, its amount of eggs, and its cost. You have to take into consideration that some shops only have a certain amount of items, for example, if you need 10 eggs, you're going to have to get 2 at Walmart and the other 8 at Target. In the end, total the price of the items needed.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here