//body pushed up the plane //refer fig. 16.6 //applying equilibrium condition N=300*cosd(30) //N mu=0.2 //Frictional force F=mu*N //N //initial velocity u=1.5 //m/sec //displacement s=6 //m //let final velocity be v m/sec //Equating work done by forces along the plane to change in K.E v=sqrt(77.71+2.25) //m/sec printf("After moving 6 m the body will have velocity v=%.4f m/sec",v)