Upcoming SlideShare
×

# MELJUN CORTES Algorithm Pseudo Code 2nd_Handouts

1,067 views

Published on

MELJUN CORTES Algorithm Pseudo Code 2nd_Handouts

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
1,067
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
7
0
Likes
0
Embeds 0
No embeds

No notes for slide

### MELJUN CORTES Algorithm Pseudo Code 2nd_Handouts

1. 1. LAMPIRAN LESSON PLAN DIRECT TEACHINGLANGKAH 11. Definisi Algorithm. Algorithm is the sequence of steps required to provide a solution for a problem.2. Karektor Algorithm. • Instruction are simple • Instruction are accurate • Instruction are general statements. • Instruction are not be repeated infinitely • Algorithm should be stopped after performing the instruction3. Contoh bentuk Algorithm.4. Soalan yang akan dikemukakan kepada pelajar( secara lisan ). Explain the Algorithm 1. Algorithm is sequence of steps required to provide a solution for problem. 2. Algorithm is a set of instruction written in simple English. 3. Each step of the algorithm should be simple and it should clearly represent the input, process and output.LANGKAH 21. Definisi Flowchart. Flow chart is an algorithm represented graphically2. Karektor Flowchart. • Use to analyze problem • Use to develop the logic to solve problems • Process of drawing flow chart we call flow charting • Instruction are represented using different symbols ( flow chart symbols )
2. 2. 3. Soalan yang akan dikemukakan kepada pelajar( secara lisan ). Explain the flowchart 1. Flow chart is an algorithm represented graphically. 2. Flow chart are used to analyze problems then it is used to develop the logic to solve problems.LANGKAH 31. Definisi Pseudo code. Pseudo code is a detailed description of what a computer program or algorithm must perform2. Karektor Flowchart. • Outline of program that can be converted into a programming instruction • Uses special reserved words for expressing the logic of programs3. Soalan yang akan dikemukakan kepada pelajar ( secara lisan ). Explain the pseudo code 1. Pseudo code is a detailed description of what a computer program or algorithm must perform. 2. It is an outline of a program that can be converted into a programming instruction. 3. Pseudo code uses special reserved words for expressing the logic of programs.
3. 3. LANGKAH 41. Simbol Flow chart.2. Contoh bentuk Flow chart.
4. 4. 3. Aktiviti Flowchart Puzzle4. Soalan lembaran kerja yang akan dikemukakan kepada pelajar. Used to present mathematical instruction Used to join the flowchart that is drawn many pages Used when their in condition Represent the starting and ending point Represent the flow of the algorithm Used to either accept the input or to display the output
5. 5. LANGKAH 51. Kata kunci Pseudo code. KEYWORD DESCRIPTION // • comment entry. • used to give additional information about the program. • can be used anywhere inside the pseudo code begin • specifies block of statements that performs a specific task … • first is begin statement and last statement is the end end • other instruction are given between these two statements Accept • accepts the input value Display • displays the output Set • initializes the value of variables if … else • specifies condition and block of statements that executed based on the condition For • specifies condition and number of times the block has to be executed based on the condition2. Contoh penggunaan Pseudo code. // Pseudo code to find whether a student has passed in a examination begin accept the mark obtained by the student if the mark is greater than or equal to 40 display “Pass” or else display “Fail” end
6. 6. 3. Aktiviti Fill Keyword4. Soalan lembaran kerja yang akan dikemukakan kepada pelajar. Explain the keywords that are used in a pseudo code below. a) Set : initializes the value of variables b) For : specifies condition and number of times the block has to be executed based on the condition c) // : used to give additional information about the program. d) Display : displays the output e) Accept : accepts the input valuePENUTUP1. Rumusan isi pelajaran.  Algorithm is a stepwise and logical solution to a problem  Flowchart is an algorithm represented graphically  Flowcharting is the process of drawing a flowchart  Pseudo code is a representation of the algorithm used for planning program logic
7. 7. 2. Mind map bagi rumusan. DEFINITION FLOWCHART ALGORITHM PSEUDO CODE Flow chart is an algorithm Algorithm is the sequence of Pseudo code is a detailed represented graphically steps required to provide a description of what a solution for a problem. computer program or algorithm must perform FLOWCHART SYMBOL PSEUDO CODE KEYWORD1. 1. Set 2. begin … end2. 3. Accept3. 4. Display 5. Set4. 6. if … else 7. For5.6.