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: aqua black salmon olive Then the output is: The quantity is matched with shade aqua, found at index 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
