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:
3
18 sofa 88 cradle 23 futon
18
Then the output is:
The sku 18 matches the product sofa, found at index 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!