write a complete program to ask the user for a positive integer n, allocate enough space on the heap for an array of integers that has n elements and then fill that array with random values using the function rand( ). pass the array to a function called find max that will return the index of the largest element of your array. your main program should print the index of the largest element of the array on the screen. remember to free up memory before terminating the program. you can use additional space on the next page for your solution. the function rand( ) is a library function that returns a value between 0 and rand max and can be called to get random values for each element of your dynamic array.