Write a program that reads the wind-tunnel test data and then allows the user to
ID: 3535685 • Letter: W
Question
Write a program that reads the wind-tunnel test data and then allows the user to enter a flight-path angle. If the angle is withing the bounds of the data set, the program should then use linear interpolation to compute the corresponding coefficiant of lift. . Add to the program a printout of the two arrays. Turn in the source program and output. Run the program 5 times – twice with data out of range (like -6 and 25), once with an angle that matches the list (like -2, 4, or 17), and twice with data that requires interpolation (like -3, 3, 9, or 13).
Data set:
Flight-Path Angle (degrees):
-4, -2, 0, 2, 4, 6, 8, 10, 12, 14, 15, 16, 17, 18, 19, 20, 21
Coefficient of Lift:
-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.121, 1.121, 1.099, 1.059
Explanation / Answer
http://www.dreamincode.net/forums/topic/47636-arrays/
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.