//Horizontal force P //refer fig.8.14 //Applying virtual work principle //-1500*(delta(s)*sind(30))+P*delta(s)*cosd(30)+0=0 P=1500*tand(30) //N printf("Magnitude of P=%.2f N",P)