Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 20

1. 2. 3. 4. 5.

Programming Concept Algorithm (Sequential) Algorithm (Selection IF) Flowchart (Sequential) Flowchart (Selection IF)

1/3

ICTL

Analisis
Penyelesaiaan Am

Penyelesaiaan terperinci

Pengaturcaraan Algorithm Semakan Senggaraan

Ujian

Fasa Penyelesaian Masalah

Fasa Implementasi

2/3

Sebelum memahami algorithm perlu faham dulu konsep programming dengan memahami beberapa istilah. program programming programmer Terdapat 2 jenis algorithm : Sequential Selection Algorithm mempunyai pewakilan atau dikenali sebagai pewakilan algorithm : 1.Psuedocode 2.Flowchart Selain pseducode dan flowchart anda juga perlu tahu tentang sourcecode. 3/3

ICTL

problem

How to solve problem


People who solve the problem

1/9

ICTL

Untuk mengadakan satu atucara, kita memerlukan seorang pengaturcara untuk membuat pengaturcaraan. Untuk membangunkan satu program, kita memerlukan seorang programmer untuk membuat programming. Sekolah kita akan menyambut hari guru, oleh itu kita memerlukan seorang guru untuk membuat persediaan.

2/9

ICTL

General a set / list of instructions to follow Computer a set / list of instructions to direct the computer to do a task

Creating A sequence Instructions Enable/direct computer Do a task/activity

Creating a sequence of instructions to enable the Computer to do something(activity or act).

3/9

ICTL

Click on instructions
Example of daily life

Get Ready to school


Batrisyia wakes up at 6.00am everyday. Then, she will brush her teeth cleanly. Next, she will take a bath. Once done, Batrisyia will put on her school uniform. She will have her breakfast right after that. After a nice and

fulfilling breakfast, she will make her way to school.

4/9

ICTL

Example of daily life

Get Ready to school


6.00 am 6.15 am 6.20 am 6.30 am wake up brush teeth take a bath wear school uniform

6.45 am
7.00 am

have a breakfast
go to school 5/9

ICTL
Write list of instructions of one of the programs

List some example of programs

Making Coffee Baking a Cake Birthday Party Go to school Clean a Classroom Post a letter Cooking Rice Wuduk Solat

Problem: A Birthday Party How to solve:


1.Arrival of guest and friends 2.Welcome speech 3.Cutting the birthday cake 4.Lucky draw and games

6/9

ICTL

Program: How to solve:


1.Get a sweets 2.Unwrap the sweets 3.Put the sweets into your mouth
Answer the questions below

1.What are the instructions tell you to do? 2.How many instructions are there in this program?

7/9

ICTL
A Set/List of Instructions
Wash and cut the tomatoes and lettuce Add some salt, pepper, olive oil and lemon juice Cut the apple, cucumber and carrots into cubes Wash and peel the apple, cucumber and carrot Toss the ingredients before serving Put all the ingredients in the salad bowl

1. Wash and peel the apple, cucumber and carrot 2. Cut the apple, cucumber and carrots into cubes 3. Wash and cut the tomatoes and lettuce 4. Put all the ingredients in the salad bowl 5. Add some salt, pepper, olive oil and lemon juice 6. Toss the ingredients before serving
8/9

ICTL
A Set/List of Instructions
Wash and cut the tomatoes and lettuce Add some salt, pepper, olive oil and lemon juice Cut the apple, cucumber and carrots into cubes Wash and peel the apple, cucumber and carrot Toss the ingredients before serving Put all the ingredients in the salad bowl

Programming (Creating a sequence of instructions ) 1. 2. 3. 4. 5. 6. Wash and peel the apple, cucumber and carrot Cut the apple, cucumber and carrots into cubes Wash and cut the tomatoes and lettuce Put all the ingredients in the salad bowl Add some salt, pepper, olive oil and lemon juice Toss the ingredients before serving
9/9

ICTL

Analisis
Penyelesaiaan Am

Penyelesaiaan terperinci

Pengaturcaraan Algorithm Semakan Senggaraan

Ujian

Fasa Penyelesaian Masalah

Fasa Implementasi

2/3

ICTL

A specific and step-by-step set of instructions for carrying out a procedure or solving a problem, usually with the requirement that the procedure terminate at some point 2 types of algorithm representation will be explained: Flowchart Pseudocode

1/4

ICTL

A method Procedure recipe For Carrying out particular task

Satu jujukan langkah demi langkah terhingga Digunakan untuk menyelesaikan masalah Seorang pengaturcara yang baik biasanya tidak cuba menyelesaikan masalah dengan terperinci di peringkat permulaan. Biasanya kaedah rekabentuk atas-bawah digunakan.

1/4

ICTL

Problem: Prepare a Breakfast 1. Start 2. Prepare a Breakfast 3. End

1/4

ICTL

Problem: Prepare a Breakfast 1. Start 2. Prepare a Breakfast 2.1 Prepare a tuna sandwich 2.2 Prepare some chips 2.3 Make a cup of coffee
3. End

1/4

ICTL

Problem: Prepare a Breakfast

1. Start 2. Prepare a Breakfast 2.1 Prepare a tuna sandwich 2.1.1 Take 2 slices of bread 2.1.2 Prepare tuna paste 2.2 Prepare some chips 2.2.1 Cut potatoes into slices 2.2.2 Fry the potatoes 2.3 Make a cup of coffee 3. End
1/4

ICTL

1/4

ICTL

1. Student identify at least five daily activities that involve sequence or procedure. Student list down the procedures accordingly to its order.

1/4

You might also like