Project brief · after lesson 8: Write the algorithm
A school is laying sprinklers on a curved lawn: an oval, not a rectangle. You have an algorithm that works for a rectangle. Does it still work on the oval, and can you make it better?
Choose two ovals to test (for example a long thin one and a nearly round one; give each a width and a length of your own, and a sprinkler reach, all made up for the task and labelled that way). Run your algorithm by hand on each. Find a case where it fails or wastes sprinklers. Then change the algorithm and show that the change fixes that case.
Finally, explain your improved algorithm to someone who has not seen the problem: the groundskeeper, who will decide how many sprinklers to order.
Tick each one when it is done.
Your work and your explanation should show each of these.
Testing, refining and justifying