Do you know how to follow an algorithm to solve a problem?
We are going to add these two numbers together, using the addition algorithm below:
Add the units.
Is the result at least 10?
If no - GO TO step 3.
If yes - regroup into tens and units, then GO TO step 3.
Add the tens.
Is the result at least 100?
If no - GO TO step 5.
If yes - regroup into hundreds and tens, then GO TO step 5.
Write the final answer by adding the hundreds, tens and units.
Which two numbers will be added in step 1?
Complete step 1: Add the units.
What do we need to do at step 2?
Regroup 13 into tens and units:
13 = ⬚+⬚
Now complete step 3: Add the tens.
What do we need to do at step 4?
Complete step 5: Write the final answer by adding the hundreds, tens and units.
We can use algorithms to add or subtract numbers.
Following algorithms allows us, or computers, to perform tasks. It's important that when you follow an algorithm you do each step.
Follow this algorithm.
Start with the number 16.
Add 5 to 16.
Double your answer to part (a).
When writing out the steps in an algorithm, you need to make sure each step is clear and that you give the correct order.