You are on page 1of 4

KANAAN GLOBAL SCHOOL

PRIMARY DEPARTMENT
ACADEMIC YEAR 2021 – 2022
Taman Surya III Jl. Boulevard Blok L2, Jakarta Barat
Telp : (021) 619 7205, 619 4528 I Fax : (021) 5437 2047
www.kanaanglobal.sch.id I info@kanaanglobal.sch.id

SEMESTER 1 – TERM 1
GRADE 6 – STEM

Topic : Algorithm in Programming Activity No. 3

NAME : ________________________

CLASS : ________________________

DATE : ________________________

What is Algorithm in Programming?

An algorithm is a sequence of step-by-step instructions or a set of rules that are


followed in the right order to complete a task correctly.

An algorithm is a procedure that tells your computer precisely what to do (and in what
order) to solve a problem or reach a goal. The task to be solved by an algorithm can be
anything, so long as you can give clear instructions for it and it can be written as a list of
steps just using text or mostly, pictorially (a flowchart) with shapes and arrows showing input,
processing and output.

The principles are identical with the flowchart.

Example Algorithm:

Next, here are the blocks required to achieve the logic above:

1 CARING FOR YOUR GROWTH


KANAAN GLOBAL SCHOOL
PRIMARY DEPARTMENT
A.Y 2021 - 2022

Example:

Algorithm

Code blocks based on the algorithm above (using the mblock 5):

2 CARING FOR YOUR GROWTH


KANAAN GLOBAL SCHOOL
PRIMARY DEPARTMENT
A.Y 2021- 2022

Make an algorithm using the instructions below:

Walk forward 5 steps.


Turn right 90 degrees.
Walk forward 5 steps.
Turn left 90 degrees.
Walk forward 3 steps.
Stop.

Draw your algorithm here:

Now, use your algorithm to make a block coding in Mblock 5 (sprite):

Copy your code here:

3 CARING FOR YOUR GROWTH


KANAAN GLOBAL SCHOOL
PRIMARY DEPARTMENT
A.Y 2021- 2022

Prepared by: Approved by:

Ms. Rain Yoan Veronica B. Jozef


Subject Teacher Primary Principal

4 CARING FOR YOUR GROWTH

You might also like