The position of the 10-kg rod AB is controlled by the block shown, which is slowly moved to the left by the force P. Neglecting the effect of friction, write a computer program that can be used to calculate the magnitude P of the force for values of x decreasing from 750 mm to 0 using 50-mm increments. Using appropriate smaller increments, determine the maximum value of P and the corresponding value of x.
