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.
![1332_8c124463-47d3-4fe2-93b9-c293363988ff.png](https://secure.tutorsglobe.com/CMSImages/1332_8c124463-47d3-4fe2-93b9-c293363988ff.png)