//Man moving //Weight of man W1=800 //N v=3 //m/sec //Weight of system after man jumps into boat W2=800+3200 //N //(a) Initial velocity of boat //using principle of conservation of momentum v=0.6 //m/sec //(b) Initial velocity of boat =0.9 m/sec towards the pier //Applying principle of conservation of momentum v1=-0.12 //m/sec printf("\nVelocity of boat and man will be %.3f m/sec towards the pier",-v1)