//Determining the forces in bars AB and AC //Refer fig 2.20(a) and (b) //Select AB and AC as x and y axes //Resolving the forces we get F1=0 //N F2=40*cosd(30) //N printf("Force in bar AB is F1=%.0f N and force in bar AC is F2=%.1f N",F1,F2)