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.

    Expert Answer

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

    Write a Matlab program that succeed clear-up coercion the speed of a stone dropped impromptu a construction as it hits the basis. The program should besides surrender how crave it took to lapse. Keep the construction acme be a changeable entered by the program.

    Expert Tally

     

    Hi,
    we keep to manifestation the equation v^2-u^2=2as coercion sagacious speed, gone its dropped u succeed be 0,absence succeed be the acme of the construction and a succeed be similar to earths gravitational coercionce which is 9.81m/s^2, so conclusive speed can be surrendern by sqrt(2*g*height). here is the matlab principle coercion the selfsame,

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