Question: 8.14 Week 8 Lab Exercise 1: Vectors: Find Max Traversing a vector to nd the IT'EIX [or rein} is common. Given a vector of integers,

8.14 Week 8 Lab Exercise 1: Vectors: Find Max Traversing a vector to nd the IT'EIX [or rein} is common. Given a vector of integers, output the maximum integerfound in the vector. Ex. If the input is: 4 3826 the output is: Hints: . Declare a variable named maxItem to hold the max value seen so far. Update that value if you ever see a larger value. . Initialize that variable to an).f element's value, NOT to O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
