//Initilization of variables m=10 //kg d=1.2 //m g=9.8 //m/s^2 //Calculations //Initilial KE is zero //Final KE is(without v^2 term in it) KE2=(3/4)*10 //Work Done U=m*g*d //N.m //Velocity calculations v=sqrt(U/KE2) //m/s //Result clc printf('The velocity is %fm/s',v)