d = v · cos(Ø) · t
h = v · sin(Ø) · t - ½ · G · t 2where G is the acceleration due to gravity, 32.17 feet per second per second.
t = d / (v · cos(Ø))
Input |
Expected Output |
Angle: 30 degrees |
Angle (radians) : |
Angle: 30 degrees Velocity: 800 ft/sec Time: 12 sec |
Distance (feet): |
Angle: 50 degrees Velocity: 900 ft/sec Time: 10 sec |
Height (feet): |
Angle: 40 degrees Distance: 11000 ft Velocity: 800 ft/sec |
Time (sec): |
gcc -lm flight*.oIssue the command in the directory where you compiled your source files.
YOU MUST LOGIN TO UNIX1 TO COMPLETE THIS STEP!
The instructor has prepared a test driver for testing your functions. You can obtain this file from the instructor's unix1 account. On unix1 the file is named flightlib_tester.o. Copy this file into your account with this unix command:cp ~graderjd/Public/flightlib_tester.o .(Don't overlook the period at the end of the command; it indicates the destination should be the current directory).
File format not recognized
collect2: ld returned 1 exit status