INTRODUCTION TO FLOWCHART
COMPUTER PROGRAM
• A collection of instructions that performs a
specific task when executed by a computer.
WHAT IS PROGRAMMING?
• Process of developing and implementing various
sets of instructions to enable computer do a certain
task.
PROGRAMMING
LOGIC PROBLEM
FORMULATION SOLVING
FLOWCHART
• It is the graphical representation of an algorithm. Flowchart
is the pictorial description of sequenced activities and logic
to be performed by the computer for carrying out data
processing. It uses special symbols which represent a
specific function. It is used by a programmer before the
actual start of any programming activity.
DATA FLOW
DIAGRAM
FLOWCHART
BLUE PRINT
SYMBOL NAME FUNCTION
Represents the beginning and
TERMINAL/ the end of the program. It
TERMINATOR contains the words “Begin” or
“Start” and “End” or “Stop”.
ELLIPSE
Represents a step or an
PROCESS instruction such as arithmetic
operations and comparisons.
RECTANGLE
SYMBOL NAME FUNCTION
Denotes a decision to be done.
It involves 2 courses of action
that is answerable either
yes/true or no/false wherein
DECISION one has to be chosen. The
symbol represents the If…
Diamond Then and the For… Next
statements.
It is used in declaring and
initializing identifiers or
PREPARATION
variables.
Hexagon Ex. Sum = 0, name = “VaL”
SYMBOL NAME FUNCTION
Represents the step wherein
information such as letters
and numbers are entered by
INPUT or OUTPUT the user or produced by the
process.
PARALLELOGRAM Ex. Input 3 numbers; Get A,
B, C; Print A.
ARROW or FLOW Indicates the flow of direction
DIRECTION or the
INDICATOR next activity to be done.
ARROW LINES
SYMBOL NAME FUNCTION
Indicates that the process
is
ON-PAGE
continued where the
CONNECTORS matching on-page
Circle connector is placed.
OFF-PAGE Indicates continuation to or
CONNECTORS from another page.
Pentagon
POINTS TO REMEMBER IN CREATING FLOWCHART
Flowchart is generally drawn from top to bottom or left
to right.
There should only be one START/BEGIN and
STOP/END process.
All symbols must be connected with arrows or flow
direction indicators.
POINTS TO REMEMBER IN CREATING FLOWCHART
Decision symbols have two exit points, one for YES
(TRUE) and another for NO (FALSE).
Concentrate on the logic of the program.
Choose only the significant steps. No need to
represent all the steps.
ADVANTAGES OF FLOWCHART
The flow of program is easily understood.
It determines the validity of the processes involved in the program.
Debugging or correcting errors is less complicated.
It produces effective program documentation.
PROBLEM 1.
Ask the user to type in his/her complete name,
complete address and telephone number.
Generate a print out of the first name, address
and telephone number only.
• START
• FN = first name
• LN = last name
• ADDRESS = complete address
• TEL = telephone number
POSSIBLE ANSWER • INPUT FN, LN
• INPUT ADDRESS
• INPUT TEL
• PRINT FN, ADDRESS, TEL
• END
• PROBLEM 2.
Ask the user to input two numbers and
have the program compute the sum. The
output should print the two numbers and
their sum.
• START
• N1 = first number
• N2 = second number
• SUM
• INPUT N1
POSSIBLE ANSWER • INPUT N2
• SUM N1 + N2
• PRINT N1
• PRINT N2
• PRINT SUM
• END
INPUT PROCESS OUTPUT
• The values • The • The results
and procedures obtained
formulas that can from data
to be used help the processing
user
manipulate
the input
data to
arrive at a
solution
DATA
FROM LATIN WORD “DATUM” MEAN “SOMETHING GIVEN”
• Defined as any collection of facts
• In the form of facts or figures obtained from experiments or
surveys
• Used as basis for making calculations or drawing conclusions
• Used in computer processing
• (numbers, texts, images, sounds, in a form that is suitable for
storage in or processing by a computer)
SAMPLES
• Create a flow chart if you are going to watch K-
drama or study
• Create a flowchart if you need to have a baby now
• Create a flowchart if the teacher go inside the
classroom
ASSESSMENT #2
15 MINS.
PROBLEM 1.
Create a flowchart about should you do your assignment
PROBLEM 2.
Create a flowchart about having a date.
REFERENCES
• [Link]
• [Link]
• [Link]/[Link]