Linear Interpolation. The following problems refer to the wind-tunnel test data stored in the file tunnel.dat. The file contains the set of data which consists of a flight-path angle (in degrees) and its corresponding coefficient of lift on each line in the file. The flight-path angles will be in ascending order.
Write a function that receives two one-dimensional array that correspond to the flight-path angles and the corresponding coefficients of lift. The function should sort the flight-path angles into ascending order while maintaining the correspondence between the flight-path angles and the corresponding coefficients of lift. Assume that the corresponding function prototype is
void reorder(double& x, double& y);
Linear Interpolation. The following problems refer to the wind-tunnel test data stored in the file tunnel.dat. The file contains the set of data which consists of a flight-path angle (in degrees) and its corresponding coefficient of lift on each line in the file. The flight-path angles will be in ascending order.
Modify the program developed in Problem such that it uses the function developed in Problem to determine whether the data are in the desired order. If they are not in the desired order, use the function developed in Problem to reorder them.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.