Question: Please write this program in C programming only. The Coding should be based on the following topics : Control statements(if-else and for loop), Functions ,
Please write this program in C programming only. The Coding should be based on the following topics : Control statements(if-else and for loop), Functions , Arrays and Data files only.

IMPORTANT NOTES: Do not use any library functions, subroutines, declaration statements, executable statements, control statements, and/or data types that have not been formally introduced and/or discussed by me in this course. A manufacturer claims that the overall efficiency n (%) of a gear pump for a certain range of volumetric flow rate v (l/min) and pressure of the fluid p (MPa) can be approximated by n = 73.39+0.0503v +0.1672 p (1) To verify the claim, an experiment has been carried out to measure the efficiency for a range of v and p. The following table shows a portion of the measurements of the efficiencies obtained from the experiment and the entire data set was saved in the file 'efficiency.txt'. The file contains the values of the efficiency when v was varied from 120 1/min to 240 1/min and p was varied from 5 Mpa to 25 MPa. The first row indicates the values of p and the first column indicates the values of v. v\p 5.0 10.0 15.0 20.0 25.0 120 79.59 80.18 81.76 80.48 82.56 126 81.22 80.84 80.52 82.36 81.26 132 81.07 80.32 81.40 82.73 81.96 138 81.11 81.07 82.19 82.70 82.38 144 81.02 82.34 82.38 81.60 83.31 Write a C program that reads the above data from the file efficiency.txt'. Your program should write the following output to an output file result.txt: a) The reprint of the entire data from the measurements. The approximated values of the efficiencies using Eq. (1). c) The error of the approximations compared to the measured values. The maximum error, the minimum error, and the values of v and p for the occurrence of the maximum and minimum errors. e) The average of the absolute error of the measurements. f) The mean and standard deviation of the errors. The number of errors that falls within one standard deviation from the mean. The computation of (f) must be done using a separate programmer defined function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
