Question: nteger inputSize is read from input. The remaining input alternates between strings and integers. Declare string vector hueList and integer vector quantityList, each with inputSize
nteger inputSize is read from input. The remaining input alternates between strings and integers. Declare string vector hueList and integer vector quantityList, each with inputSize elements. Then, read and store all the strings into hueList and all the integers into quantityList.
Ex: If the input is:
teal lavender violet red
Then the output is:
Hue: teal, Quantity:
Hue: lavender, Quantity:
Hue: violet, Quantity:
Hue: red, Quantity:
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
