5-2 Introduction to AlgorithmsObjectives: - Students will follow an algorithm to draw pictures constructed from 2D shapes.
- Students will use logical reasoning to debug and correct errors in the 2D shape algorithms.
Watch: Who is Grace Hopper?Discussion:
- This algorithm is made up of a sequence of instructions to create a picture of a house.
- On the right is how you would like the house to look.
- There might be some mistakes in the algorithm, which means following it will not create the picture of the house you hoped for.
- Your task is to use logical reasoning to work through this algorithm to detect and correct any errors; we call this debugging.
With a partner: - One person will read each step of the algorithm on this worksheet and the other person will draw it on a blank sheet of paper.
- Check whether what you have drawn from the algorithm matches the picture.
- If it does then move on to next step; if it doesn’t fix edit the algorithm.
When editing the algorithm think about the use of logical reasoning to justify the changes you make:- Identify the difference.
- Think about what you need to change.
- Change the algorithm.
## 2D Drawing Worksheet
## Check Your Understanding**What is an algorithm? (Hint:**You used algorithms to create the sequences of instructions for constructing the 2D shape drawings.)**What is debugging? (Hint:**You used debugging to detect and correct the errors in the 2D shape drawings.)
Add text.If you finish early: |