topic badge
CanadaON
Grade 8

11.02 Following algorithms

Worksheet
Following algorithms
1

State whether the following tasks can be completed by following an algorithm:

a

Falling asleep

b

Making friends

c

Cooking a meal from a recipe book

d

Building a toy out of Lego

2

Alana has the following algorithm for wrapping a present but it is in the wrong order:

  • Stick paper down with sticky tape

  • Choose wrapping paper

  • Decorate with a bow

  • Wrap the paper around the present

a

What should be the first step?

b

What would be the last step?

3

The following instructions are in the wrong order:

  • Turn off the tap

  • Rinse the soap away with water

  • Rub your hands

  • Put soap on your hands

  • Turn on the tap

a

What should be the second step?

b

What would be the last step?

4

What could the following algorithm be for?

StepInstruction
1Weigh out all the ingredients
2Mix butter, sugar and eggs together
3Stir in the flour
4Bake in the oven
5

For each of the following algorithms, work out the output at each step and complete the table:

a
StepInstructionOutput
1\text{Start with the number }100
2\text{Subtract }22\text{ from }100
3\text{Round the result to the nearest ten}
b
StepInstructionOutput
1\text{Start with the number }70
2\text{Double }70
3\text{Add }21
c
StepInstructionOutput
1\text{Start with the number }16
2\text{Add }5\text{ to }16
3\text{Double the result }
d
StepInstructionOutput
1\text{Start with the number }2
2\text{Add }2\text{ to }2
3\text{Round your answer to the nearest ten }
e
StepInstructionOutput
1\text{Start with the number }36
2\text{Halve }36
3\text{Add }3\text{ to the result}
f
StepInstructionOutput
1\text{Start with the number }12
2\text{Multiply }12\text{ by }10
3\text{Add }5 \text{ to the result}
g
StepInstructionOutput
1\text{Start with the number }6
2\text{Subtract }1\text{ from }6
3\text{Double the result }
h
StepInstructionOutput
1\text{Start with the number }80
2\text{Add }19\text{ to }80
3\text{Round the result to the nearest ten}
Sign up to access Worksheet
Get full access to our content with a Mathspace account

Outcomes

8.C3.1

Solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves the analysis of data in order to inform and communicate decisions.

8.C3.2

Read and alter existing code involving the analysis of data in order to inform and communicate decisions, and describe how changes to the code affect the outcomes and the efficiency of the code.

What is Mathspace

About Mathspace