0% found this document useful (0 votes)
6 views13 pages

Pps Assignment-1

Uploaded by

dheenamyself
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views13 pages

Pps Assignment-1

Uploaded by

dheenamyself
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

PROCRAMIYMINE EOR

PRORLEM SOLVINC
IT221oi
(useB

Name -Teuyonth V
Rel.no- 34
DEPARTMENT - EEE
Section
Keg. Ne- 2127 2 406 olo34
and Jlauckat
a hsudocode and te caloulate
troots cacion
Boudecode:
START
DECLA RE A,B, c,D
D=BB -4AC
TF D
DISPLAY(-Et(^s)/ A)
DISPLAy C-B-D/a)/2 A)
ELSFCF D o
Drs PLAY -B/2A
ELSE
DrsPLA YImaginy osts

Fleuchast
STAR

REAP A,B.c/
D= B'B -4Ac

DISPLAy
CB-(p) A
DTSPL AY -B)2A DEs PlAY
Imaginey hoots

STop
2) Concicle? a mabl sawicing aqent.
chaiges au lund alona writh toe
) Molile Rechazge Rs l00 +122foa
(i) Molid toh of
( )Cost e gonoa see Rs 2oo
+lh.ston
surice
Jhe custome
ttinclucecstie.hs
Veid main C)

irt rcnange, sewee, tofuhotal, , y:


Char 2;

&z)
phitr("Frter ameunt or toh h )
coanf(d",&y);
ScenfC"C & rd goneal

beor -(z y) ?20o-lu5/,oo200): o;


totl
+Bewie
Psintf ( The total omsunt
wtite hsaudloceds and
fadorial rumles
Piudacade
START
DECLARE n,i=,Fesati,;
READ n
GHLLE i2= n
Do
côMPUTE esut ault
TNCRE ASE i ba
FND L0op
PrINT ssnlt
END

Flowchaat
START)
READ n
jasut

(STOP
b) We cneck a umer s plme or rot
Pseude code :
START
READ n
SETLARE n,j=l:Jat zo
PROAEDURE
WHILE I22n
if n i ==0
ENDIoo++
IF

DISPLAY not prme


ELSE
DESPLAy Paime
END
Flouchot
(STAR

/REAP n/

yet'tt|
ect>2
Prime
NoT Pswne
END
) To caleulate sinhle intat
Poeosde
STÀRT
DECL ARE P,N, R,Si
READP,N, R
COMPUTE Sie
DTSPL Ay si
p°N*R/1o0
STOP

Flouchast
(STA RT
RE AD P, N, R

/DTSPLAY Si
END
and cla he herseNs
O-5’ Bay
6- 12-Kid
13-19-Teen
20 - 4o- Addlt

ireudestdio.n
Vei maun C)

psuntt('E ntes oge: ;

Case o.5:

bheat
Case G. 12:
Priydt(° Kid )
CGe 13... 1a:
Prit fe' tan")
bosak,
Case 2o..4O;

dyalt
5)) waate a cfaagem jen case doalea
do
the Jolleaing. Sn a can dsalohh
Jon a hodiodo modal that
hane to e

Jianft

Jasth-), Jocnk-i;
Jon (unti=l; i4snit)
Joctn i
Jor (intit;i4-k;it+)

pom . dtol aal cooy An,shtion


Numer oftions to tonhot A som3obtlo
dnis ho7 manbl: Shehuka has b maslle
amd almah has 2 2
moolley.shahka
daman gos to the omnlle shh and dally
t stimulate (ioritote tho abore ac hioqo
amd Jinaly fint iho mo shanges
mallo coch he
<stdie-h
Veid main C)
nt

b- b 3:
2
Pante " ni hadhosd molls a)
phithatrka has zd manlls", b)
Pritfl alman hay.d maszba," c),

Jhasuka hay melles


3laman hay 52 manles
the 2i
tj Ct
3
cOLb.c- 4Ca.
ind
Lstdion include
wethot qots
rtcal tnhem hlacL towants she anh
enes &wtite and marlles wlue lbhas she
makke Com
s| the mdhragam
1o acnumlrWaite
ric)
I5)1gkbmis
W/(w) bmi
hogk yosfCEnen
("d"ew)} spaincatmf
pzintf'yousEnten
bmiy Hot
c)
ymain Void
<stie.h include
-heqtam BMI
the calaak to
ndbruigtd U;

slse lbmi2 |8.6A& bmiz 24


printf Cyou oeideal')
se a (bri 215 &Ebmi L24)
Printf( y ane

clese )

You might also like