Two trolleys move towards each other, collide and stick. You will make the program find the total momentum before, their speed together afterwards, and how much kinetic energy is lost. Then it draws the momentum before and after as bars.
The idea. With no outside force, total momentum before total momentum after: . Kinetic energy is not kept when they stick.
Your tasks.
p_before, the total momentum before.v, their velocity together after the collision.ke_lost, the kinetic energy before minus after.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…