Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started