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.
we entertain to interpretation the equation 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)