//Value of P //refer fig. 17.9 (a),(b)and(c) //Let t1 be the time required to bring the system to rest N=1000 //N F=0.2*1000 //N //Applying impulse momentum equation upto stationary condition and leftward motion and solving those equations by trial and error method we get P=645.74 //N printf("Value of P is %.3f N",P)