Académique Documents
Professionnel Documents
Culture Documents
LANGKAH 1 1. 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 instruction
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 2 1. Definisi Flowchart. Flow chart is an algorithm represented graphically 2. 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 )
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 3 1. Definisi Pseudo code. Pseudo code is a detailed description of what a computer program or algorithm must perform 2. Karektor Flowchart. Outline of program that can be converted into a programming instruction Uses special reserved words for expressing the logic of programs
3. 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.
For
2. 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
Explain the keywords that are used in a pseudo code below. a) b) c) d) e) Set For : initializes the value of variables : specifies condition and number of times the block has to be executed based on the condition // : used to give additional information about the program. Display : displays the output Accept : accepts the input value
PENUTUP 1. 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
2.
DEFINITION
ALGORITHM
Algorithm is the sequence of steps required to provide a solution for a problem.
FLOWCHART
Flow chart is an algorithm represented graphically
PSEUDO CODE
Pseudo code is a detailed description of what a computer program or algorithm must perform
FLOWCHART SYMBOL
1. 1. Set 2. begin end 2. 3. Accept 4. Display 5. Set 4. 6. if else 7. For 5.
3.
6.