You are on page 1of 29

FLOW CHARTS

FLOW CHART IS A GRAPHICAL REPRESENTATION OF


A PROGRAMME. FLOW CHARTS ARE DRAWN USING
A SET OF SYMBOLS AND NOTATIONS. USING
THESE SYMBOLS AND NOTATIONS WE CAN SHOW
HOW A PROGRAMME IS ORGANIZED TO PERFORM
IT’S INTENDED TASKS.
SYMBOLS USED IN FLOW CHARTS

THERE ARE 6 MAIN SYMBOLS

✓ TERMINAL SYMBOL
✓ INPUT/OUTPUT SYMBOL
✓ PROCESS SYMBOL
✓ DECISION SYMBOL
✓ FLOW LINES
✓ CONNECTOR SYMBOLS
1.TERMINAL SYMBOL
✓ THIS OVAL SHAPED SYMBOL INDICATES THE
“START” AND “STOP” OF A FLOW CHART.

✓ THEREFORE TERMINAL SYMBOLS ARE THE


FIRST AND LAST SYMBOLS OF ANY FLOW
CHART.
2. INPUT/OUTPUT SYMBOL
✓ THIS PARALLELOGRAM SYMBOL INDICATES
THE STEP WHICH DENOTES AN INPUT OR
OUTPUT OPERATION IN FLOW CHARTS.
3. PROCESS SYMBOL
✓ THIS RECTANGULAR SYMBOL INDICATES
ARITHMATIC OPERATION, DATA ASSIGNMENTS,
DATA TRANSFER AND OR SIMPLY A PROCESS.
4. DECISION SYMBOL
✓ THIS DIAMOND SHAPED SYMBOL REPRESENTS
THE OCCURRENCE OF A CONDITION WHERE
TRUTH VALUE (TRUE OR FALSE) DETERMINES
THE PATH TO BE SELECTED.
5. FLOW LINES
✓ LINES WITH ARROW KEYS INDICATE THE
DIRECTIONS OF FLOW OF PROGRAMME LOGIC.
THE LINES MUST BE FOLLOWED TO
UNDERSTAND THE SEQUENCE OF EVENTS IN A
FLOW CHART.
✓ ALL THE OTHER SYMBOLS IN A FLOW CHART
ARE JOINED TOGETHER BY FLOW LINES.
6. CONNECTOR SYMBOL
✓ CONNECTORS ARE USED WHEN CONTINUOUS
FLOW LINES CAN NOT BE DRAWN.

✓ OFF PAGE CONNECTOR

✓ ON PAGE CONNECTOR
CONTROL STRUCTURES

✓ Sequence

✓ Selection

✓ Repetition
SEQUENCE STRUCTURE
Sequence control structure specifies one program statement
after another is to be executed in a given order

Step 1

Step 2

Step 3
SELECTION STRUCTURE
Represents a choice between two actions based on a
condition

If T
Condition

F
REPITITION STRUCTURE
Repetition control structure specifies that the process to be
repeatedly performed until a given condition is not true (Or
while the condition is true)

While F
Condition

T
• Example1

Draw a flow chart to input 2 numbers and to


out put the total
• Example 2

Draw a flow chart to input 2 numbers and to


out put the total and average
• Example 3

Draw a flow chart to find the perimeter of a


rectangle.
Perimeter = 2 (Length + Width)
• Example 4

A student should awarded a ‘Pass’ grade if the


mark is more than 50 and ‘Fail’ grade if the
mark is less than 50. Draw a flow chart to
enter a mark of a student and to display the
grade
• Example 5

Draw a flow chart to print the word ‘Hello’


5 times
• Example 6

Draw a flow chart to input 10 numbers


from the key board and to out put the total
and the average
• Example 7

Draw a flow chart to display all even


numbers between 1-20
• Example 8

Draw a flow chart to display the sum of


first 50 natural numbers.
• Example 9

Draw a flow chart to enter a number


through the keyboard and to display
whether it is a negative or a positive
number.
• Example 10

Draw a flow chart to enter your computer


marks through the key board and to output
the grade Marks > 79 Distinction
Marks > 60 Credit
Marks > 49 Pass
Marks < 49 Fail
• Example 11

Draw a flow chart to input series of 100


numbers and to out put the number of odd
and even numbers
• Example 12

Draw a flow chart to input marks of 100


students and to display number of Pass Fail
students. (Marks >=50 Pass, Else Fail)
• Example 13

Draw a flow chart to input series of 100


numbers and display number of Positive,
Negative and the Zeros in the series
• Example 14

Draw a flow chart to obtain series of


positive numbers from the keyboard and to
display the sum of the numbers. Assume
that the user type the sentinel value -1 to
indicate “end of data entry”
• Example 15

Draw a flow chart to input 5 numbers and


to out put the Maximum and the Minimum
number
• Example 16

Draw a flow chart to input 5 numbers and


to out put the Maximum number ,Minimum
number, Total and the average

You might also like