Write a c++ function, largestnum, that takes as parameters a double array and its size and returns the index of the last occurrence of the largest element in the array. also, write a program to test your function.