Question: Complete the FindMax 0 member function in Numbers.cpp that returns the largest value in vector nums. You ONLY have to fill in the function in
Complete the FindMax member function in Numbers.cpp that returns the largest value in vector nums.
You ONLY have to fill in the function in Numbers.cpp Numbers.h and main.cpp cannot be touched.
Note: The nums vector is filled with pseudorandom integers in main using the FillRandomly member function from Numbers.cpp
with a seed value of There is NO input passed to this lab. When submitted for grading, the test cases use different seed values to
generate different vectors. Refer to the textbook section on Random numbers to learn more about pseudorandom numbers.
Ex: If the seed value is
Then the vector will be:
and the output should be:
LAB
ACTIVITY
: LAB: Find the maximum in a vector
#include
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
