Question: Answer in C++ please. Thank you. 3. Finding 2 largest numbers in a list be written as a function that i he user should be
Answer in C++ please. Thank you.

3. Finding 2 largest numbers in a list be written as a function that i he user should be able to enter TwoLargest should s called in main. T any list of numbers that they wish. Hint: You can use parts of the code from the bubblesort example such as vector_getO to create the list of numbers. Additionally, length(A)-n can also be found with A.size0 in C++ so TwoLargest can be wriuen with only onc argumen. proceedure TwoLargest(A a .. .anj, length(A)-n) large 1-0 large-2 = () for i 1 to n if Ali>large_1 large-2 = large+1 large-l = A[i] else if large 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
