An object dropped from rest falls a distance d = ½ g t² and reaches the speed v = g t (g = 9.8 m/s²). FreeFall reads the time in seconds and prints:
- the value of the tempting but wrong expression
1 / 2 * G * seconds * seconds; - the correct distance, the final speed in m/s and in km/h, and the average speed (distance / time).
For the input
3
the program prints
With 1 / 2 first: 0.0
Distance fallen: 44.10 m
Speed at the end: 29.40 m/s
Speed at the end: 105.8 km/h
Average speed: 14.70 m/s