Program Write a function called gimmeIndex() Write a program that declares a 4×5 array of int
1. Write a function called that the index of the largest value stored in an array-of-doubles. Demonstrate the function in a program that the name and size of the array to your function (listing 10.10 has an example of passing the name and size of an array to a function). Make sure your array contains at least 10 elements.2. Write a program that declares a 4×5 array of and initializes it to some non-zero values of your choice (you can hard-code the initial values or initialize it programmatically). Have the program output the values, then triple each value (overwrite each value with its new tripled value), then output those values. Make sure you output the array so that it looks like a 4×5 array on the screen. USE NAMED CONSTANTS for the array size and loop limits.






