Week3 Module3 Flowcharting Sequential
Week3 Module3 Flowcharting Sequential
Programming I
Compiled by:
Process Rectangle
Decision Diamond
Connector
Arrowheads
Horizontal/
Vertical Lines
Process
Connector
Flow Lines
Decision
Flow Direction
Preparation Indicators
Flowcharting
General Rules for flowcharting
1. All boxes of the flowchart are connected with
Arrows.
2. Flowchart symbols have an entry point on the
top of the symbol with no other entry points. The
exit point for all flowchart symbols is on the
bottom except for the Decision symbol.
Flowcharting
General Rules for flowcharting
3. The Decision symbol has two exit points
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.
Flowcharting
General Rules for flowcharting
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 than 3 symbols
Flowcharting
General Rules for flowcharting
6. Subroutines and Interrupt programs have their
own and independent flowcharts.
7. All flow charts start with a Terminal or Predefined
Process
8. All flowcharts end with a terminal or a contentious
loop.
Examples of
Flowchart
Flowchart – sequential type
Problem 1:
Find the area of circle of
radius (r).
Flowchart – sequential type
Problem 1: Find the area of circle of radius (r).
Start
Read r
Area = Pi * R * R
Print Area
END
Flowchart – sequential type
Problem 2:
Convert temperature
Fahrenheit (F) to Celsius (C)
Flowchart – sequential type
Problem 2: Convert temperature Fahrenheit (F) to
Celsius (c).
Flowchart – sequential type
Problem 3:
Flowchart for an
algorithm which gets two
numbers and prints sum of
their value
Flowchart – sequential type
=
Problem 3: Flowchart for an algorithm which gets two numbers and
Read A, B
SUM = A + B
Print SUM
END
Be Ready for Guided
Exercises in Flowcharting
Guided Exercises 3