Pps Assignment-1
Pps Assignment-1
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)
&z)
phitr("Frter ameunt or toh h )
coanf(d",&y);
ScenfC"C & rd goneal
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
/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)
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+)
b- b 3:
2
Pante " ni hadhosd molls a)
phithatrka has zd manlls", b)
Pritfl alman hay.d maszba," c),
clese )