Flowchart
Flowchart
Flowchart
FLOW CHART
BACKGROUND
Program:
composed by 1 programmer
composed by 1 team of programmers
Required planning & design using:
FLOW CHART
FlowChart: Symbols representing the flow of control
steps of a programs execution
Objective: to simplify program-code composition
Symbol for
conditional statement
where decision is
based of whether the
condition is true or
false
Start and End of a
program indication
Connector
TYPES OF INSTRUCTION
A. Unconditional Statements
Process A
Process B
Process C
TYPES OF INSTRUCTION
B. Conditional Statement
Condition
False
Process A
True
Process B
TYPES OF INSTRUCTION
C. Looping Statements
Condition
False
Process A
True
Process B
EXAMPLE:
1. Flow chart for buying cakes using coupons:
Start
A
Prepare Money
Queue for
buying coupon
Buy the
Coupon
A
Choose Cake
Trade cake
for coupon
Stop
EXAMPLE:
2. Flow Chart for Study:
Start
Do the
Questions
Prepare
Equipments
Match with
Answers
Read Notes
Understand
Notes
Fit?
yes
Understand
Contents
A
no
Take a break
B
Stop
EXAMPLE:
3. Find the average of 3 input data numbers:
Start
Read: A,B,C
X = A+B+C
3
Write: X
Stop
PRACTICE QUESTIONS
1. Given:
A number of data
The amount of data depends on the number
of inputs that may varies.
Solve for :
The Average of all data
Exercise
1. Print number 1 - 10
2. Determine whether the entered number is
positive or negative
3. Determine whether the entered number is
odd or even
Exercise
4. Print series of:
-11, -9, -7, -5, -3, -1, 0, 2, 4, 6, 8, 10
5. Print series of:
-10, 8, -6, 4, -2, 0, 1, 4, 9, 16, 25
6. Print series of:
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55
Exercise
Find the maximum and minimum number
from practice question no. 1