Problem Statement
A physics student is studying free fall motion and needs a program to calculate how far an object falls under gravity. When an object is dropped from rest, the distance it falls in meters after t seconds is given by the formula:
d = 0.5 × g × t²
Where:
- d is the distance fallen (meters)
- g is the acceleration due to gravity (use 9.8 m/s²)
- t is the time (seconds)
Write a program that reads the time in seconds and outputs the distance fallen, formatted to 2 decimal places.
Example: If an object falls for 3 seconds, it will fall 0.5 × 9.8 × 3² = 44.10 meters.