Question: Integer dataSize is read from input. Then, integers and strings are read and stored into integer vector skuList and string vector productList, respectively. Lastly, integer
Integer dataSize is read from input. Then, integers and strings are read and stored into integer vector skuList and string vector productList, respectively. Lastly, integer skuAsked is read from input. Find skuAsked in skuList and output the following:
"The sku
the value of skuAsked
matches the product
the element in productList at the index of skuAsked in skuList
found at index
the index of skuAsked in skuList
End with a newline.
Ex: If the input is:
sofa cradle futon
Then the output is:
The sku matches the product sofa, found at index
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
