//Determining horizontal force F //From fig 2.14(b) //Resolving the forces //Fy=0 gives R=1500/cosd(30) //N //Fx=0 gives F=R*sind(30) //N printf("Horizontal force of F=%.0f N is required to be applied",F)