Two masses of and pull on each other. You will make the program find the force at , then at every distance from to , and find the first distance where the force has fallen below a tenth of its value at . Then it draws the force against the distance.
The idea. : twice the distance gives a quarter of the force, three times the distance a ninth.
Your tasks.
F1, the force at , in newtons.F, the force at the distance d.far, the first distance on the list where the force is less than F1 / 10.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…