Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ * TODO: Test 5 - Retrieve from collection * = = = = = = = = = = = = = = =
TODO: Test Retrieve from collection
Given an integer idNumber and a vector of students,
search the students vector for the first student whose ID number
matches the idNumber parameter. If the ID number is found,
return the student with that ID number. If no student with
that ID number is found, return a student created with the
default constructor.
Tips:
Given the nature of the returned result, the value displayed
in the console may not accurately represent your points for
this test.
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