5.1 What Will You Learn in This Chapter?
5.1 What Will You Learn in This Chapter?
1. Wake up.
2. Have breakfast.
3. Take a shower.
4. Go to school.
5. Attend classes.
6. Have lunch.
7. Attend classes.
9. Do homework.
12. Go to sleep.
However, this routine might vary from person to person but for a specific
person this might be the routine. An algorithm is a set of steps to solve a
problem. A program is written based on an algorithm to get the required
result. Sequencing in algorithms is arranging the steps of an algorithm in a
correct sequence so that we get the correct outcome.
Page 52
Sequencing is important in algorithms. If the steps of an algorithm are not
in correct sequence, we will not get the required result.
If we swap 2 steps and add Num1 and Num2 before taking Num1 as input,
the program will not give the required result or give an error. This is called a
bug.
Page 53
In this example, we see that this program has a sequence of conditions and
loops.
At the end of this activity the final output should look like shown in the
image below:
Page 54
Note: Minecraft is just one of the platforms to achieve this output. You can
use many similar platforms available online to achieve similar output like –
Scratch (https://scratch.mit.edu/) and Code.Org (https://code.org/)
Standard Questions
Page 55
Higher Order Thinking Skills (HOTS)
1. Write a program in block code to print all the prime numbers between 0
and 50.
Applied Project
Page 56