Question: Write the requested C program .Write the full program including the functions as described (35 points) Write a complete C program that fills an array

Write the requested C program .Write the full program including the functions as described (35 points) Write a complete C program that fills an array with integers in a file called inFile.txt, then finds and displays the minimum, maximum, and average of the array. Assume that the file contains no more than 30 integers. For this purpose, write two functions as described below: FillArr: Receives a file pointer and an empty array, then fills the array with the integers in the file until end-of-file is reached. The function returns the number of integers read. StatArr: Receives an array of integers, the size of the array, then it finds and returns the minimum, maximum, and average of the array, (using pointers) main() function will call these functions and display the minimum, maximum, and average as given in the example output below. Assuming the file contains 3 5 11 2 10 9 the output should be: the minimum The maximum : 11 The average 6.67
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
