Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

need help to finish this program: Given an array and the size of the array, find

ID: 3617989 • Letter: N

Question

need help to finish this program: Given an array and the size of the array, find and return thelargest value in the array.
 For example, if the array has values    4, 1, 6, 3, 7, 9, 4, 5, 2, 6, 10, 8, 
then it should return 10.
 #include <iostream>#include <fstream>#include <string>using namespace std; 


need help to finish this program: Given an array and the size of the array, find and return thelargest value in the array.
 For example, if the array has values    4, 1, 6, 3, 7, 9, 4, 5, 2, 6, 10, 8, 
then it should return 10.
 #include <iostream>#include <fstream>#include <string>using namespace std; 


Explanation / Answer

#include #include #include using namespace std; int returnLargest(int anArray[], intsize); int main(){ int index= 0; int arr[]= {4, 1, 6, 3, 7, 9, 4, 5, 2, 6, 10,8}; cout