Question: Integer dataSize is read from input. Then, integers and strings are read and stored into integer vector quantityList and string vector shadeList, respectively. Lastly, integer

Integer dataSize is read from input. Then, integers and strings are read and stored into integer vector quantityList and string vector shadeList, respectively. Lastly, integer quantityAsked is read from input. Find quantityAsked in quantityList and output the following: "The quantity " the value of quantityAsked " is matched with shade " the element in shadeList at the index of quantityAsked in quantityList ", found at index " the index of quantityAsked in quantityList End with a newline. Ex: If the input is: 456 aqua 10 black 48 salmon 83 olive 56 Then the output is: The quantity 56 is matched with shade aqua, found at index 0 Note: quantityAsked is an element in quantityList.

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!