Question: Create a directory called lab7 on your machine using mkdir lab7 Within this directory, complete the program named lab7.c that is shown below. You need

Create a directory called lab7 on your machine using mkdir lab7 Within this directory, complete the program named lab7.c that is shown below. You need to write the five functions shown in red #include #include int **allocateMatrix(int, int); void initMatrix(int **, int, int); int findRange(int **, int, int); double findAverage (int **, int, int); void printCorners(int **, int, int); int main(int argc, char *argv[]) {srand(0); int **data; int row = atoi (argv[1]); int col = atoi (argv[2]); data = allocateMatrix(row, col); initMatrix(data, row, col); printf("Range of values in the array is %d ", findRange (data, row, col)); printf("Average of all array values is %lf ", findAverage(data, row, col)); printCorners(data, row, col); return 0;} A sample execution of this program is shown below ./a.out 2 2 The range of values in the array is 532 The average of all array values is 740.250000 383 886 777 915 A brief description of each of the three functions you have to write is given below: allocateMatrix - Allocates space for the matrix, returning a pointer to that location in memory. Recall that to allocate space for the matrix, you: Declare an int ** variable Assign that variable to the result of allocating space for the "rows" in the matrix o For each row pointer in the matrix, allocate space for all integers on that row (column integers) initMatrix - Initialize all values in the matrix to a random value in range of 0-999. findRange - Calculates and returns the range of the elements in the matrix. Recall the range of an matrix is the largest value minus the smallest value in the matrix. findAverage - Calculates and returns the average value (a double) of all elements in the matrix. printCorners - prints the four values at the corners of the matrix. Submit your lab First, on your local machine, compress your lab7 directory into a single (compressed) file. Second, once you have a compressed file that contains your lab7 program, submit that file to Blackboard