In a lab, three springs were loaded and their stretches measured. You will make the program find each spring constant from the readings, pick the stiffest spring, and predict how far each one stretches under a new load.
The idea. Hooke's law, , makes a graph of against a straight line through the origin. Its slope is the spring constant .
Your tasks.
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…