Professional Documents
Culture Documents
Program Flow Charts
Program Flow Charts
There are
Block flowcharts,
System flowcharts,
Procedure flowcharts and
Program flowcharts
PROGRAM FLOWCHARTS
These represent the flow of logic in a
program and help programmers
see program design. They are also
sometimes called logic flowcharts.
Flow charts are drawn in the design
phase of programming.
A flowchart is comprised of specialised
symbols and flow lines. Each symbol
contains information about what
must be done at that point; and the
arrow shows the flow of execution.
PROGRAM FLOWCHARTS contd
show the step by step sequence of operations
carried out by a computer program
START
END
PROGRAM FLOWCHARTS contd
The process symbol
Input name
PROGRAM FLOWCHARTS contd
The decision symbol
Yes
Even number ?
No
PROGRAM FLOWCHARTS contd
The pre-defined process symbol
Sort Marks
PROGRAM FLOWCHARTS contd
The connector symbols
Connector
Off-page connector
B
A
A B
Drawing Flow Charts
Organize the flowchart in modules
Step 1
Step 2
Sequence of steps
Step 3
END
PROGRAM FLOWCHARTS contd
Combining symbols
n = sum + grade
END
PROGRAM FLOWCHARTS contd
Combining symbols
n=n+1
Loops
WHILE loop
( loops involve
a) decisions and N < 50?
branching False
{if statements} True
b) Returning to
previous < an action >
statements < action continuing
program >
)
PROGRAM FLOWCHARTS contd
Combining symbols
n=n+1
Loops
REPEAT loop
< an action >
Sum = 0
Input price
No
End
Common Flowchart Symbols
Common Flowchart Symbols
Terminator. Shows the starting and ending points of the program. A terminator has
flow lines in only one direction, either in (a stop node) or out (a start node).
Data Input or Output. Allows the user to input data and results to be displayed.
Decision. The diamond indicates a decision structure. A diamond always has two
Flow lines out. One flow line out is labeled the yes branch and the other is labeled the
no branch.
Connector. Connectors avoid crossing flow lines, making the flowchart easier to read.
Connectors indicate where flow lines are connected. Connectors come in pairs, one with
a flow line in and the other with a flow line out.
Off-page connector. Even fairly small programs can have flowcharts that extend several
pages. The off-page connector indicates the continuation of the flowchart on another
page. Just like connectors, off-page connectors come in pairs.
Flow line. Flow lines connect the flowchart symbols and show the sequence of operations
during the program execution.
FYI : Other Symbols