You are on page 1of 6

Re NO2l00030533-

HOME ASSIGNMENT
section04
RollNO-HO

to
cash wi7hdraw
#lowchart
diaw a
Oesiqn an alqoi Thm and
HTom A T M

A9Ohmn

Step Stant

Step-2 Go to the ATM


mathi ne
caid into the
SEP3
Dnsert you
cbde
Step-4 press in yous
enter Amount
yequireo
uwithdraw"and
Choose
Step
Take the cash, sliP
and ca1d
step-6 V

step stop
Flou-chovt
Start

atm
Go to the

ccnd into
Tn s e r t YOur
the ATM machine

PIess in youi code

chooscwithdvaw entey

the amount

Take the cash


thc SiiP
TC Ke
Ta Ke the cad

(e1OP)
ind ciCum leyentG Ot circle in modulay
Osiqn an
agoilthmn to

diaw and ezeut e flouhavt 4or lt


way use TapioY to

Omua-2n*

Peatos cirunieienie

ans

Algo1ihmn
main
P1 siart

P Read T

circum fersnre tY)


ep 3ans
ep- p1lnt ans

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

thal conveits an nput inch iwo


oesiqn an alqorlthm in modulor way
its uivaient centlmeteis uso Taptor o drao and exccube Howchas

fot oneinch-2-5ums main


COeyloert'me
FOmula input inch= N*9*54 cms

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 =

PTint centimee atimet GLOP


Gtor
that takes
as input the pn
an algo1iThm
in madua1 way and
esign Erpectd numbey of years
ot seTYitecy)

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

Hoduia dlo91am colcu late depie ciot fon

ans

S1aTe

tep- Read values ot PS,4 5

ans = calcuaie depreciatlon CPS,4)


tep3
EP-PnE ans

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

praductton Tequhement 5- set up cast pet oidc I=inven tovy


caiiqin cOst e t untt

FO1mula;- EOQ RYS]r

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

FOQcalculateEtale,S,T) etuin ies


Pilnt tQ
Stop)
StOP

You might also like