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

assume that we would like to use the linear interpolation to determine the coeff

ID: 2972809 • Letter: A

Question

assume that we would like to use the linear interpolation to determine the coefficient of lift for additional flight- path angles that are between -4 degrees. write a program that allows the user to enter the data for two points and a flight - path angle between those point the program should then compute the corresponding of lift. the coefficient of lift values are (-0.182,-0.056.,0.097,0.238,0.421,0.479,0.654,0.792,0.924,1.035,1.076,1.103,1.120,1.120,1.121,1.099,1.059)

Explanation / Answer

#include #include #include using namespace std; //Define constants and declare function prototypes const int T=100; double maxval(const double x[], int n); double minval(const double x[], int n); int main() { // Declare objects int tpts(0); double y[T], flight_range, coef_lift; string filename; ifstream tunnel; // Prompt user for file name and open date file. cout > filename; tunnel.open(filename.c_str()); if (tunnel.fail()) { cout > flight_range >> coef_lift; // While there is room in the array and // end of file was not encountered, // assign the value to the array and // input the next value. while (tpts > flight_range; } // Find and print the maximum value cout