A steel wire long and across is stretched slowly by up to . You will make the program follow the force as the wire stretches, work out the stored energy from , and check it by adding up thin strips of the area under the force-stretch graph.
The idea. The wire is a spring with , so . The work done, stored as elastic energy, is the area under the graph of against : .
Your tasks.
k, and the force F at every stretch in x.U at every stretch, from .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…