Professional Documents
Culture Documents
Input/Output is used to
indicate where data are entered
into the flowchart and also
where results are printed.
Process is used to specify
some action to be taken. An
arithmetic or replacement
operation might be specified.
Note: Flowcharting symbols and techniques can vary from one book to another, or from
one software package to another
Given three numbers A,B,C, draw a flowchart that computes and
prints out the sum, the average and the product of these values
A,B,C
SUM=A+B+C
Ave=Sum/3
Prod=A*B*C
Sum, Ave,
Prod END
Given a number N, draw a flowchart that determines if the
value is positive or negative
START
T/Y
N>=O Val = “Positive”
F/N
Val=“Negative”
Val
END
Given two numbers, draw a flowchart that determines
and displays the larger value
START
X,Y
T/Y
X>Y Larger= X
F/N
Larger= Y
Larger
END
Display numbers from 1 to 10
START
NUM=1
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+1
Display odd numbers from 1 to 10
1,3,5,7,9
START
NUM=1
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+2
Display even numbers from 1 to 10
2,4,6,8,10
START
NUM=2
IF
F/N
NUM<=10 END
T/Y
LOOP NUM
NUM=NUM+2