A 3000 lb vehicle travelling on a road at 100 ft/sec requires a force equal to its mass times its acceleration to stop ( F = ma).
The acceleration is given by
Where vi = 100 ft/sec
vo = 0 ft/sec.
Write a program that will calculate the retarding force needed to stop the car at distances of 10, 20, 30, 40, 50, …, 1000 ft. Display the distance value and the corresponding retarding force in tabular form. The units of force are Newtons (N). Your solution must include a user-defined function that returns the force and takes as input initial and final velocity and distance.