Professional Documents
Culture Documents
HOME ASSIGNMENT
section04
RollNO-HO
to
cash wi7hdraw
#lowchart
diaw a
Oesiqn an alqoi Thm and
HTom A T M
A9Ohmn
Step Stant
step stop
Flou-chovt
Start
atm
Go to the
ccnd into
Tn s e r t YOur
the ATM machine
chooscwithdvaw entey
the amount
(e1OP)
ind ciCum leyentG Ot circle in modulay
Osiqn an
agoilthmn to
Omua-2n*
Peatos cirunieienie
ans
Algo1ihmn
main
P1 siart
P Read T
stop
0dula7 mcthod
Gumc1en
tep-1 stait
ep- néiaze e s
es = 2* 3y*R
ep3
ep-H 7étuuin ves
t 6top
etho
FlouwchaF O u c h a t 4oT meThod Flou) chat for
eicumterence
moin
GAat
Gtayt
Tnitoli2e yes/
Read
ans ifCumMevene ) e s 23ye
Pyint ans
etun yrs
A1g0Tthm erttmes he
Man
s t a r t
in inches as N
Read value
Step
Step-3Cetimeters caluiatc(N)
centimetcis
SteP Pint f centi metes
stcp5Stop
du las method*
calGuiate Cni S
SPSart
es
sep- Tes = N*9.sy
ietuin ves
ep Stop
F l o u c h a t foY methoo
Calcuiat e centimckes
F l o w c h a i t HOT method
main
Stat
Sta
TeS- N 2.Su
calculatetN)
Teturn yes
centimeley S =
an temtp),'Es
the
ice of hen Otputs the yeaiy
depreelation foy
(5)
*pTtta salvage value and eeCUt e
to drauw
emD)'use the fomuia O=(P-s)9 use vaptor
[one 'nch
it a*54 CMS]
iowchait tor
-
oimuia O=(p-s)4
eiatoi
ans
S1aTe
SteP
FIOU ChalF for methoo Flouxhat for methoo
main
depiectatlon
Stat Stat)
* p.S4
CP-s)*)
Read the alues ot PS.Y Tes=
(alcuate
depreeiation 7etunes
ans =
(P.5,)
P i n t ans
Gtop
flowchait usin
and draw a
Desiqn an alqorlhm
in
moadu laT way
otemtne the most economical quantir
YCpto too1 to1 the tollouing
a hae
t o be stocKed 4o1 kach piadutt
That
manufactuing company
calea
CcOnomt oider uanti*y
in ns invenioy This Quatlty
(EoQ) ts calulat ed as Hoilouos EOQ - RIS|4 wheje R - t o t a l q e a i l
opeiatos
l
HOdulaT diagiom main
Algo1iThm
a
values
Read R, Si
caltulatc ECa (e,S.T)
Eaa-
s3
P J i n t EO
toa
Stop
10duar method
alGulatc E
Stait
CPTes
-
(2* p%s)|T
P3Tetuin yess
SeP StoP
lou-Chai
Flow chatt foY methoo
FOChait to metkod
main Calculate EOQ
SEa
Sta
Read values of R,5 es-9p*s)| 1