DCIT22-Computer Programming 1 - Learning Module 1
DCIT22-Computer Programming 1 - Learning Module 1
Silang Campus
CvSU Mission
Campus Goals
MODULE I. INTRODUCTION TO
ALGORITHMS,PSEUDOCODE
& FLOWCHART
Learning Objectives:
What is Algorithm?
A sequence of instructions.
A step-by-step procedure to solve a given problem.
A procedure or formula for solving a problem.
It was created mathematician, Mohammed ibn-Musa al-Khwarizmi.
Often used for calculation, data processing and programming.
Algorithms can be expressed in any language.
4.Generally a flowchart will flow from top to bottom. However, an upward flow
can be shown as long as it does not exceed 3 symbols.
5. Connectors are used to connect breaks in the flowchart. Examples are:
• From one page to another page.
• From the bottom of the page to the top of the same page.
• An upward flow of more then 3 symbols
6. Subroutines and Interrupt programs have their own and independent flowcharts.
7. All flow charts start with a Terminal or Predefined Process (for interrupt
programs or subroutines) symbol.
8. All flowcharts end with a terminal or a contentious loop.
Pseudocode
of x and y.
Algorithm(Pseudocode):
Steps:
Step 1. input x
Step 2. input y
Step 3. sum = x + y
Algorithm(Flowchart)