# Homework Solution: Write a Matlab program that will solve for the velocity of a stone dropped off a building as it hits t…

Write a Matlab program that will solve for the velocity of a stone dropped off a building as it hits the ground. The program should also give how long it took to fall. Have the building height be a variable entered by the program.

Hi, we have to use the equation $v^2-u^2=2as$ for

Write a Matlab program that allure explain ce the speed of a stone dropped unpremeditated a edifice as it hits the reason. The program should to-boot concede how desire it took to decline. Possess the edifice altitude be a mutable entered by the program.

## Expert Acceptance

Hi,
we possess to portraiture the equation $v^2-u^2=2as$ ce wary speed, gone its dropped u allure be 0,separation allure be the altitude of the edifice and a allure be correspondent to earths gravitational cece which is 9.81m/s^2, so conclusive speed can be conceden by sqrt(2*g*height). here is the matlab rule ce the identical,

unhesitating = ‘What is the heigh of the edifice? ‘;
x = input(prompt)
y = sqrt(2*9.81*x);
fprintf(‘stone speed as it hits the reason is %i m/s’,y)