# 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 accomplish explain ce the celerity of a stone dropped extempore a construction as it hits the foundation. The program should too furnish how hanker it took to descend. Entertain the construction tallness be a shifting entered by the program.

## Expert Counterpart

Hi,
we entertain to interpretation the equation $v^2-u^2=2as$ ce guarded celerity, past its dropped u accomplish be 0,interspace accomplish be the tallness of the construction and a accomplish be resembling to earths gravitational cece which is 9.81m/s^2, so last celerity can be furnishn by sqrt(2*g*height). here is the matlab command ce the similar,

quick = ‘What is the heigh of the construction? ‘;
x = input(prompt)
y = sqrt(2*9.81*x);
fprintf(‘stone celerity as it hits the foundation is %i m/s’,y)