--> //To determine force in the bar and floor reaction --> //Refer Fig. 2.17(b) --> //Equilibrium equation gives --> S=(7*cosd(45)-5)/cosd(30) //kN S = -0.0580266 --> R=10+7*sind(45)-S*sind(30) //kN R = 14.978761 --> printf("Tensile force in the bar has magnitude %.3f kN and Reaction from floor is R=%.3f kN",-S,R) Tensile force in the bar has magnitude 0.058 kN and Reaction from floor is R=14.979 kN