A wooden beam long and wide rests on two supports and carries at its middle. How deep must it be? You will make the program find the sag for every depth from to , the smallest depth that keeps the sag under , and how much less a beam twice as deep sags.
The idea. A beam loaded at its middle sags . For wood, is about .
Your tasks.
d.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…