If a car is traveling 15m/s and needs to stop within 15m, how much break force is required?
Assume constant deceleration, flat ground, and no drag or rolling resistance. Return the magnitude of the required braking force as a scalar. You may assume the car's mass is provided as input.
def required_brake_force(mass, speed, stopping_distance):
mass: car mass in kilogramsspeed: initial speed in meters per secondstopping_distance: distance available to stop in metersdef required_brake_force(mass, speed, stopping_distance):