Académique Documents
Professionnel Documents
Culture Documents
N UFinding
M B ERsum
S of 845 and 247
Star
t
Start
Read
A
A=845
Read
B
B=247
SUM=A
+B
SUM= 845+247
Print
Sum
SUM= 1092
End
End
FLO W CH A RT
What is a flowchart?
Elements of a flowchart:
Uses of a flowchart:
Drawing a flowchart
Questio
n?
No
Next Step to be
taken when the
answer
is N0
Yes
Next Step to be
taken when the
answer is Yes
Is
SP>CP?
No
Yes
Profit= SP-CP
Is
SP>CP
?
No
Loss= CP-SP
Yes
Profit= SP-CP
FLO W CH A RT- H ow to f n
i d prof t
i or loss.
Star
t
Read Cost price
(CP)
Read Selling price
(SP)
Yes
Is
Is
SP>C
SP>C
P?
P?
Profit= SP-CP
No
Loss= CP-SP
Print Loss
End
Print Profit
Finding profi
t or loss w hen
CP= 325 and SP= 458
Start
Read CP= 325
Read SP=458
Condition:
Is 458> 325?
458-325
Profit =
Profit=
Rs.133
End
Geometric shape
Purpose
Ellipse
Parallelogram
Rectangle
Diamond
Yes
No
Arrows
Multiplication table
of 12
Read
number N
Count= 1
Print count
times N=
Multiple
No
Is
Is
Cou
Cou
nt=
nt=
10
10
Yes
End
N = 12
Count= 1
Multiple= N x
Count
Add 1 to the
current value
of count
Start
12*1 = 12
Count = 1+1 = 2
12*2 = 24
Count = 2+1 = 3
Count = 9+1 = 10
12*10 = 120
Count= 10
End
No
Is
Is
M=
M=
N?
N?
Yes
Print F
End
Finding factorial of 10
Start
N=10
M=1
F=1
F= 1*1 = 1;M < 10;M = 1+1 = 2
F= 1*2 =2;M < 10;M = 2+1 = 3
F=2*3 =6;M < 10;M = 3+1 = 4
F= 6*4 =24;M < 10;M = 4+1 = 5
M<10;M = 9+1 = 10
F = 362880* 10 = 3628800; M = 10
Factorial of 10= 3628800
End
Yes
No
Lande
Lande
d
d on
on
the
the
botto
botto
m
m of
of
the
the
ladder
ladder
?
?
Yes
No
Reached
Reached
the
the last
last
block
block of
of
the
the
game?
game?
End
No