The braking distance of a car depends on its speed as the brakes are applied and on the car’s braking efficiency. A formula for the braking distance is
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:6| Question number:26.6
All Answers
total answers (1)
Ch6Ex26.m
[s, R] = promptSandR;
brakDist = calcbd(s, R);
printbd(brakDist)
promptSandR.m
function [s, R] = promptSandR
s = 33;
R = 11;
end
calcbd.m
function bd = calcbd(s, R)
bd = s .^ 2 / (2*R*9.81);
end
printbd.m
function printbd(bd)
fprintf('The braking distance was %.1f\n', bd)
end
need an explanation for this answer? contact us directly to get an explanation for this answer