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

it this assignment by following the instructions given by your TA. SUBMIT ONLY t

ID: 3704585 • Letter: I

Question

it this assignment by following the instructions given by your TA. SUBMIT ONLY the .c file (no a.out or executable file is required). All the lab assignments must be submitted before the end of the lab using the lab code given by the TA. Use the following submit command. Filename must be: sectionletter-lab10.c (Include your respective lab section) e.g. h-lab10.c S submit cassignment> cfilenames S submit CS1050 LAB10 h-lab10.c Description The lab 10 is on malloc. Implement the following functions for the lab assignment. Void initializeArray(int *, int): This function initializes the content of the array. This function takes in an integer pointer and the size of the array void printNumbers(int*, int): This function prints the content of the array on to the screen, takes in the integer pointer and the size of the array float findAverage(int *, int): Takes in the integer pointer and find the average of all the numbers and returns it. int findMax(int *,int): Takes in the integer pointer and the size and finds the maximum number in the array

Explanation / Answer

Here is the complete code

And sample output

Enter the size of an array: -1
Please enter again: 109
Please enter again: 8
The array is:
1 2 3 4 5 6 7 8

The mean of all the numbers = 4.500000
The minimum of all the numbers = 1
The maximum of all the numbers = 8
The number reversed are:
8 7 6 5 4 3 2 1