Write a program to check whether a car will crash. There is an obstacle at a certain distance (say 100 m) and the car is travelling at a certain speed (try it with some different speeds). The user hits the brakes after 0.5 seconds, applying a deceleration of 5 m/s^2. Draw the progress of the car and report whether it stopped safely or hit the obstacle.
1