MODULE 4 Lesson 1 Algorithm Development
MODULE 4 Lesson 1 Algorithm Development
Algorithm
Development
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Algorithm
3 Types of Algorithm
Example of Algorithm
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Problem2: Write an algorithm to read two numbers and find their sum.
Inputs to the algorithm:
First num1. Second num2.
Expected output:
Sum of the two numbers.
Algorithm:
Step1: Start
Step2: Read\input the first num1.
Step3: Read\input the second num2.
Step4: Sum num1+num2 // calculation of sum
Step5: Print Sum Step6: End
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
5) Effectiveness: Algorithms to be
developed/written using basic operations.
Operations should be basic, so that even
they can in principle be done exactly and in
a finite amount of time by a person, by
using paper and pencil only..
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
References:
https://www.examupdates.in
https://en.wikipedia.org/wiki/Sequential_algorithm
Madhi Amir (2013). Algorithm and Flow Chart. https://faradars.org/wp-
content/uploads/2015/07/Algorithm-and-Flow-Chart.pdf