Two balls are thrown at the same moment from the same point: () and (), at different velocities. Each follows its own parabola. You will make the program follow both, and their centre of mass, and find the centre of mass's own starting velocity.
The idea. Each ball: , . The centre of mass is the mass-weighted average of the two positions, and it moves like one ball thrown with .
Your tasks.
vx_cm and vy_cm.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…