Question: Write the Program in C and include the entire code you used in the answer please! Use this program to find the mean, variance, and

Write the Program in C and include the entire code you used in the answer please!
Use this program to find the mean, variance, and skewness of the resting systolic pressures (mmHg) and ages (years) of the 270 subjects stored in the file Age_sys_P.txt
I could not post the entire file of Age_sys_P.txt, but this is some of the .txt file below:
7.000000000000000e+1 1.300000000000000e+2 6.700000000000000e+1 1.150000000000000e+2 5.700000000000000e+1 1.240000000000000e+2 6.400000000000000e+1 1.280000000000000e+2 7.400000000000000e+1 1.200000000000000e+2 6.500000000000000e+1 1.200000000000000e+2 5.600000000000000e+1 1.300000000000000e+2 5.900000000000000e+1 1.100000000000000e+2 6.000000000000000e+1 1.400000000000000e+2 6.300000000000000e+1 1.500000000000000e+2 5.900000000000000e+1 1.350000000000000e+2 5.300000000000000e+1 1.420000000000000e+2 4.400000000000000e+1 1.400000000000000e+2 6.100000000000000e+1 1.340000000000000e+2 5.700000000000000e+1 1.280000000000000e+2 7.100000000000000e+1 1.120000000000000e+2 4.600000000000000e+1 1.400000000000000e+2 5.300000000000000e+1 1.400000000000000e+2 6.400000000000000e+1 1.100000000000000e+2 4.000000000000000e+1 1.400000000000000e+2 6.700000000000000e+1 1.200000000000000e+2 4.800000000000000e+1 1.300000000000000e+2 4.300000000000000e+1 1.150000000000000e+2 4.700000000000000e+1 1.120000000000000e+2 5.400000000000000e+1 1.320000000000000e+2 4.800000000000000e+1 1.300000000000000e+2 4.600000000000000e+1 1.380000000000000e+2 5.100000000000000e+1 1.200000000000000e+2 5.800000000000000e+1 1.120000000000000e+2 7.100000000000000e+1 1.100000000000000e+2 5.700000000000000e+1 1.280000000000000e+2 6.600000000000000e+1 1.600000000000000e+2 3.700000000000000e+1 1.200000000000000e+2 5.900000000000000e+1 1.700000000000000e+2 5.000000000000000e+1 1.440000000000000e+2 4.800000000000000e+1 1.300000000000000e+2 6.100000000000000e+1 1.400000000000000e+2 5.900000000000000e+1 1.600000000000000e+2 4.200000000000000e+1 1.300000000000000e+2 4.800000000000000e+1 1.220000000000000e+2 4.000000000000000e+1 1.520000000000000e+2 6.200000000000000e+1 1.240000000000000e+2 4.400000000000000e+1 1.300000000000000e+2 4.600000000000000e+1 1.010000000000000e+2 5.900000000000000e+1 1.260000000000000e+2 5.800000000000000e+1 1.400000000000000e+2 4.900000000000000e+1 1.180000000000000e+2 4.400000000000000e+1 1.100000000000000e+2 6.600000000000000e+1 1.600000000000000e+2 6.500000000000000e+1 1.500000000000000e+2 4.200000000000000e+1 1.360000000000000e+2 5.200000000000000e+1 1.280000000000000e+2 6.500000000000000e+1 1.400000000000000e+2 6.300000000000000e+1 1.400000000000000e+2 4.500000000000000e+1 1.300000000000000e+2 4.100000000000000e+1 1.050000000000000e+2 6.100000000000000e+1 1.380000000000000e+2 6.000000000000000e+1 1.200000000000000e+2 5.900000000000000e+1 1.740000000000000e+2 6.200000000000000e+1 1.200000000000000e+2 5.700000000000000e+1 1.500000000000000e+2 5.100000000000000e+1 1.300000000000000e+2 4.400000000000000e+1 1.200000000000000e+2 6.000000000000000e+1 1.500000000000000e+2 6.300000000000000e+1 1.450000000000000e+2 5.700000000000000e+1 1.500000000000000e+2 5.100000000000000e+1 1.400000000000000e+2 5.800000000000000e+1 1.360000000000000e+2 4.400000000000000e+1 1.180000000000000e+2 4.700000000000000e+1 1.080000000000000e+2 6.100000000000000e+1 1.200000000000000e+2 5.700000000000000e+1 1.200000000000000e+2 7.000000000000000e+1 1.560000000000000e+2 7.600000000000000e+1 1.400000000000000e+2 6.700000000000000e+1 1.060000000000000e+2 4.500000000000000e+1 1.420000000000000e+2 4.500000000000000e+1 1.040000000000000e+2 3.900000000000000e+1 9.400000000000000e+1 4.200000000000000e+1 1.200000000000000e+2 5.600000000000000e+1 1.200000000000000e+2 5.800000000000000e+1 1.460000000000000e+2 3.500000000000000e+1 1.200000000000000e+2 5.800000000000000e+1 1.500000000000000e+2 4.100000000000000e+1 1.300000000000000e+2 5.700000000000000e+1 1.100000000000000e+2 4.200000000000000e+1 1.480000000000000e+2 6.200000000000000e+1 1.280000000000000e+2 5.900000000000000e+1 1.780000000000000e+2 4.100000000000000e+1 1.260000000000000e+2 5.000000000000000e+1 1.500000000000000e+2 5.900000000000000e+1 1.400000000000000e+2 6.100000000000000e+1 1.300000000000000e+2 5.400000000000000e+1 1.240000000000000e+2 5.400000000000000e+1 1.100000000000000e+2 5.200000000000000e+1 1.250000000000000e+2 4.700000000000000e+1 1.100000000000000e+2 6.600000000000000e+1 1.200000000000000e+2 5.800000000000000e+1 1.000000000000000e+2 6.400000000000000e+1 1.400000000000000e+2 5.000000000000000e+1 1.200000000000000e+2 4.400000000000000e+1 1.080000000000000e+2 6.700000000000000e+1 1.200000000000000e+2 4.900000000000000e+1 1.300000000000000e+2 5.700000000000000e+1 1.650000000000000e+2 6.300000000000000e+1 1.300000000000000e+2 4.800000000000000e+1 1.240000000000000e+2 5.100000000000000e+1 1.000000000000000e+2 6.000000000000000e+1 1.500000000000000e+2 5.900000000000000e+1 1.400000000000000e+2 4.500000000000000e+1 1.120000000000000e+2 5.500000000000000e+1 1.800000000000000e+2 4.100000000000000e+1 1.100000000000000e+2 6.000000000000000e+1 1.580000000000000e+2 5.400000000000000e+1 1.350000000000000e+2 4.200000000000000e+1 1.200000000000000e+2 4.900000000000000e+1 1.340000000000000e+2 4.600000000000000e+1 1.200000000000000e+2 5.600000000000000e+1 2.000000000000000e+2 6.600000000000000e+1 1.500000000000000e+2 5.600000000000000e+1 1.300000000000000e+2 4.900000000000000e+1 1.200000000000000e+2 5.400000000000000e+1 1.220000000000000e+2 5.700000000000000e+1 1.520000000000000e+2 6.500000000000000e+1 1.600000000000000e+2 5.400000000000000e+1 1.250000000000000e+2 5.400000000000000e+1 1.600000000000000e+2 6.200000000000000e+1 1.200000000000000e+2 5.200000000000000e+1 1.360000000000000e+2 5.200000000000000e+1 1.340000000000000e+2 6.000000000000000e+1 1.170000000000000e+2 6.300000000000000e+1 1.080000000000000e+2 6.600000000000000e+1 1.120000000000000e+2 4.200000000000000e+1 1.400000000000000e+2 6.400000000000000e+1 1.200000000000000e+2 5.400000000000000e+1 1.500000000000000e+2 4.600000000000000e+1 1.420000000000000e+2 6.700000000000000e+1 1.520000000000000e+2 5.600000000000000e+1 1.250000000000000e+2 3.400000000000000e+1 1.180000000000000e+2 5.700000000000000e+1 1.320000000000000e+2 6.400000000000000e+1 1.450000000000000e+2 5.900000000000000e+1 1.380000000000000e+2 5.000000000000000e+1 1.400000000000000e+2 5.100000000000000e+1 1.250000000000000e+2 5.400000000000000e+1 1.920000000000000e+2 5.300000000000000e+1 1.230000000000000e+2 5.200000000000000e+1 1.120000000000000e+2 4.000000000000000e+1 1.100000000000000e+2 5.800000000000000e+1 1.320000000000000e+2 4.100000000000000e+1 1.120000000000000e+2 4.100000000000000e+1 1.120000000000000e+2 5.000000000000000e+1 1.200000000000000e+2 5.400000000000000e+1 1.080000000000000e+2 6.400000000000000e+1 1.300000000000000e+2 5.100000000000000e+1 1.300000000000000e+2 4.600000000000000e+1 1.050000000000000e+2 5.500000000000000e+1 1.400000000000000e+2 4.500000000000000e+1 1.280000000000000e+2 5.600000000000000e+1 1.200000000000000e+2 6.600000000000000e+1 1.780000000000000e+2 3.800000000000000e+1 1.200000000000000e+2 6.200000000000000e+1 1.500000000000000e+2 5.500000000000000e+1 1.300000000000000e+2 5.800000000000000e+1 1.280000000000000e+2 4.300000000000000e+1 1.100000000000000e+2 6.400000000000000e+1 1.800000000000000e+2
Let xo, X1, x2, ...., XN-1 be a set of N data points (one dimensional array with N elements). The distribution of this set of data points can be characterized using descriptive statistics. The mean or arithmetic average of these N data points is a value about which the data points cluster and hence is a measure of the central tendency of the distribution of these data points. NI The variance of the N data points is the average of the absolute values of the deviations of data points from the mean, and hence is a measure of data variability or scatter about the mean. N-1 (NIT) ,(x,-x)2 Variance -2- The skewness of the N data points is a measure of the degree to which the distribution of the data points about the mean value departs from symmetry. Skewness m Compose a C program (see attached pseudo-code) that performs the following tasks: Reads in a set of N data points from a file consisting of one column of floating point data. Computes the mean variance, and skewness of the N data points using Equations (1-3). The program should calculate each of these three statistical descriptors by calling a separate function Each function should be versatile enough to calculate the desired statistical descriptor for any number (N) of data points. Writes to a separate file the data's mean, variance, and skewness each on a separate line with appropriate message and units
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
