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 conquer reresolve control the swiftness of a stone dropped unstudied a structure as it hits the premise. The program should besides grant how desire it took to gravitate. Keep the structure culmination be a inconstant entered by the program.

    Expert Defense

     

    Hi,
    we keep to verification the equation v^2-u^2=2as control farsighted swiftness, gone its dropped u conquer be 0,space conquer be the culmination of the structure and a conquer be correspondent to earths gravitational intensity which is 9.81m/s^2, so decisive swiftness can be grantn by sqrt(2*g*height). here is the matlab statute control the corresponding,

    brisk = ‘What is the heigh of the structure? ‘;
    x = input(prompt)
    y = sqrt(2*9.81*x);
    fprintf(‘stone swiftness as it hits the premise is %i m/s’,y)