Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PROGRAMMING
I – Objectives:
At the end of the lesson, the students are expected to:
Obtain design documentation
Use basic programming-construct algorithms
II – Subject Matter:
Topic: Algorithm
Materials: Projector, Pen
Reference: Java Programming – Concept and Application – Joyce Farrell, 2009.
Skills: Identify Algorithm, Creating Algorithm
B. Interaction
Discussion
1. What is an algorithm?
2. What are the components of an algorithm?
Generalization
Algorithm is a sequence of instructions or procedures specifying the steps
required to accomplish some task and describe on how to do a task.
Algorithm has the following components:
Variables and values
Instructions
Sequences
Procedures
Selections
Repetitions
Documentation
Values represent quantities, amounts or measurements and may be numerical
or alphabetical (or other things).
Variables are containers for values or it is used to place the values.
Procedure is a sequence of instructions.
Selections is an instruction that decides which of two possible sequences is
executed. The decision is based on a single true/false condition.
Repetition is the process of repeating the instruction.
Documentation does the following:
Records what the algorithm does.
Describes how the algorithm works.
Explains the purpose of each component of the algorithm.
C. Integration
How does algorithm help in building a program?
IV. Evaluation:
Students are given a short quiz for them to answer.
1. Write an algorithm to calculate the area of circle.
V. Assignment:
1. What is a flowchart?
2. What are the symbols used in creating a flowchart?
Prepared by:
WILKIN F. SIMO
Applicant