Question: Help, I figure out what is wrong with the program. Output 2.12) Write a C program that does the following: Asks user for jet's take-off
Help, I figure out what is wrong with the program.


Output

2.12) Write a C program that does the following: Asks user for jet's take-off speed (km/hr) and the distance (meters) over which the catapult accelerates the jet from rest to take-off. The program then calculates the acceleration (m/s^2) of a jet fighter launched from an aircraft-carrier catapult. Assume constant acceleration. It also calculates the time (seconds) for the fighter to be accelerated to take-off speed. Relevant formulas: velocity = acceleration * time distance = (1/2)*acceleration time^2 Hint: You may want to substitute the formulas for unknown as such: C = a*b; b = a*c hence c = a*a*c; Also make sure to convert km/hr to m/s. Note: Your output should have 2 places of precision. SAMPLE RUN #4: . / JetSpeed Interactive Session Hide Invisibles Highlight: None Show Highlighted Only O Enter.jet's take-off.speed.in-km/hr:102.2- Enter.distance in meters.required to reach take-off speed:74- Acceleration.of.jet.is.5.45.m/s^2- Time-required.is.5.21. seconds float t; #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
