Question: Integer numElements is read from input. Then, sttings and integers are read and stored into string vector empioyeelist and integer vector idList, respectively. Lastly, string
Integer numElements is read from input. Then, sttings and integers are read and stored into string vector empioyeelist and integer vector idList, respectively. Lastly, string employeeAsked and integer idAsked are read from input. - Assign matchCount with the number of element pairs that match both employeeAsked and idAsked. - For each pair that matches employeeAsked and idAsked; output "Exact match found at index " followed by the element. pair's index. End with a newline Ex: If the input is: 3 Gus 214 Del 91 Del 95 De1 91 Then the output is: Exact match found at index 1 Total: 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
