Você está na página 1de 6

Module

7 2009
Computer Software- Programming
(algorithm)
Module : COMPUTER SOFTWARE

Learning Area : 2.2 Develop a program


a. algorithm

Learning Outcome : 2.2.1 Write a simple algorithm


- sequential

Module Objective : By the end of the lesson, pupils should be


able to:
1. write a sequence structure algorithm

Step 1 Explain the definition of algorithm

Teacher’s note: Teacher explains the technical definition of algorithm


before proceeding with definition of sequence structure. Teacher may use
the definition and suggested activities below to conduct lesson.

Definition: Algorithm - is a method or procedure – or even a recipe – for


carrying out particular task.

Situational example:
(1) Sequences or steps in cooking rice.

(2) Sequences or steps to bake a cake.


*In both situations, procedures must be followed in order to achieve the
desired goal.

Suggested activities:

(Individual/Pair work)

Students identify at least five daily activities that involve sequence or


procedure. Then, students list down the procedures or steps accordingly to
its order.

For weaker students, teacher provides a random list of procedures. Then,


students rearrange the procedures accordingly in order.

*example of daily activities: (1) kite-making, (2) baking a cake, (3)


converting a mixed number to improper fraction, (4) tying a pair of shoes,
and (5) buying food at the canteen.
Step 2 Explain the definition of sequence structure

Teacher’s note: Teacher may use the definition below as guidance.

Definition: Sequence structure

A set of directions that one needs to follow, from the beginning to the end.

E.g.
(1) A birthday party – one needs to follow each activity in order, beginning
with the first activity and ending with the last.

(2) Conducting science experiment – one needs to follow each step in


sequence – to achieve the desired outcome.

Step 3

1. Read and understand the tentative program and the situation given.
Example:

Situation:

A birthday party at Lela’s house.The guests needs to follow the activities


during the party from the beginning to the end.

Tentative program:

4.00 p.m Arrival of guests and friends

4.30 p.m Welcome speech

4.45 p.m Party starts

5.00 p.m Cutting of the birthday cake

5.30 p.m Lucky draw and games

7.00 p.m Party ends

Step 4 Write a sequence structure using Microsoft Word


Program by referring to the tentative program in previous
lesson.
Example of sequence structure:

1. Start

2. The guests are expected to arrive at 4.00 p.m.

3. The host will deliver her speech at 4.30 p.m.

4. The party starts at 4.45 p.m.

5. The birthday cake will be cut at 5.00 p.m.

6. The lucky draw and games session start at 5.30 p.m.

7. The party will end at 7.00 p.m.

8. End
Suggested activities:

Activity A
1. Teacher provides students with a set of procedures.
2. Students convert the set of procedures to algorithm on worksheet
provided.

Example: Instruction: Create an algorithm based on the


procedures provided.
Procedures: 1. Start

1. go to school 2. _____________________________________

2. breakfast 3. _____________________________________

3. wake-up 4. _____________________________________

4. take a bath 5. _____________________________________

5. put on uniform 6. _____________________________________

6. brush the teeth 7. _____________________________________

8. End

Worksheet (sample)
Activity B

1. Teacher asks students to read a


short paragraph. Batrisyia wakes up at 6.30
a.m. everyday. Then, she
2. Based on the paragraph, students brushes her teeth cleanly.
identify the sequences. Next, she takes a nice and
refreshing bath. Once done,
3. Students create an algorithm based Batrisyia puts on her school
on the sequences. uniform. Then, she eats her
breakfast. After a nice and
fulfilling breakfast, she
makes her way to school.

Você também pode gostar