Page 17 - CloudGPT_C6_Flipbook
P. 17
2 ALGORITHMS WITH
BLOCK CODING
Learning Outcomes
Introduction Searching for a Word in Dictionary
Algorithm Flowchart
Pseudocode Getting started with Block Coding
INTRODUCTION
So far, you have understood that coding is associated with many day to day activities. For
example, a traffic light works on coding. In this chapter, you will learn how to understand a
situation and write codes according to it.
SEARCHING FOR A WORD IN DICTIONARY
A dictionary is a book which contains words Q
and phrases in an alphabetical order, with their
meanings. f ANSWERS
Many times, while reading a book you may come
across a word whose meaning you don’t know. So A b
how do you find out the meaning of the word? C K
You will find the meaning of the word by using a B a
dictionary. But when you open a dictionary you
see, there are many words in a dictionary. So how
do you find that particular word in the dictionary?
Let’s see an example to find the word 'Orange' in
a dictionary:
1. Find the dictionary section with the first letter of the word, ‘o’.
2. Within the list of words starting the first letter ‘o’, find the section having the second
letter of the word ‘r’.
3. You need to do this process again with the third letter ‘a’, fourth letter ‘n’, fifth letter ‘g’
and sixth letter ‘e’, until you finally reach the word ‘orange’ in the dictionary and then
find its meaning.
Algorithms with Block Coding 15

