Académique Documents
Professionnel Documents
Culture Documents
1. Program Flowchart
• Describes graphically in detail the logical
operations and steps within a program and
the sequence in which these steps are to be
executed for the transformation of data to
produce the needed output.
Program flowchart
Types of Flowcharting
2. System Flowchart
• Is a graphic representation of the procedures
involved in converting data on input media to
data in output form. The emphasis is on the
media used and the work stations through
which the data passes.
System Flowchart
NAME FUNCTION SYMBOL
Terminal Symbol Beginning and end of a procedure or a
(oval) program
NAME = “”
SALARY = 0
BONUS = 0
READ NAME,
SALARY
A
IS
N Yes
SALARY <= BONUS = PRINT NAME,
P10,000.00 ? BONUS
SALARY * .50
No
BONUS =
P5,000.00 End
A
Example B.
1. Draw a flowchart that will compute and display the sum and
product of two numbers. Write its equivalent algorithm.
ALGORITHM
Step 1. Initialize Sum and Product into 0.
Step 2. read in the values of A and B.
Step 3. Compute Sum by adding A and B then compute Product
by multiplying A and B.
Step 4. Print the computed value of Sum and Product.
Flowchart
Start
Sum = 0
Product = 0
Read A, B
Sum = A+B
Product = A*B
Print Sum,
Product End
Example C.
1. Draw a flowchart that will count from 1 to 10 and print each
number counted using the iteration repetition structure.
Write its equivalent algorithm.
Algorithm.
Step 1. Initialize the value of C to 0.
Step 2. Test if C is less than 10.
Step 3. If C is less than 10, add 1 to the value of C, print the value
then go back to Step 2. However, if C is greater than 10, stop
processing.
• Flowchart
Start
C=0
F
C < 10 End
T
C=C+1
Print C