I needed help to write a program that calculates the acceleration (m/s 2) of a jet fighter launched from an aircraft-carrier based catapult, given the jet’s takeoff speed in km/hr and the distance(meters) over which the catapult accelerates the jet from rest to takeoff. Assume constant acceleration. Also calculate the time (seconds) for the fighter to be accelerated to takeoff speed. When you prompt the user, be sure to indicate the units for each input. For one run, use a takeoff speed of 278 km/hr and a distance of 94 meters.
Relevant formulas
v = at
s = ½ at 2
v = velocity, a = acceleration, t =time, s=distance
i got it half way through as i just started with c++ a few weeks ago i m still confused on what terms to give and what if statements and what comments to state.(source code only)
help would be gladly appreciated.
thanks
Shreyas.