You are on page 1of 14

Assignment- Page No.

YOUVA
Dato:

ist out adVantage s of algozithan


omd Flowchourt
Algo2ithn
Tt is c step ise
2ep2e5 Pon tution oF a
solution to
eLsy to undeNstumd.
given_P20blemuhich mukes_IE

cgothm ithm uses definite P20 Cedule


Fvezystep in an algozithn hus its
s eq Nce so t
ounlogice
is eas fO debu
Flow Chct
The Flow thont 1s
COmmn dmiCutin9 the logiee
aneacellent uwo DE_
CL2020m
| I 1S eas camo efficiemt to cm ze p20 blen
sing tlouchent

Tt lps the p1oum_ code

2 aite cn clgozith to ind oyerage oF Een

Step - Stot
step 2 No=2 Sum o
Repea t step 3, 4
fep ** Su- =Sum t O
step -u Not2
Umtil NO< So
Step 5AUs= Sum2S
|step 6 Pint aug_
Page No.
Date:

aiven Senies
c h a t t o czeee
3Design Flou
S ,R13

StuRt

T np u t Vae

A= o_

Count: 2

Cwzi te AC

COun t >
Mes
B/

mect-A+B

C1ite neoct

A B

Count - Coutt,

Stop
Pago No.
YouVA
Dato:

L uw2ite cm cugonithon cim dzaw CLflowshout to 2ead


he nc ssotee_stud ent amd clessify them mto
diffenent J2ades. If mzkS secu7ed oe 1eceh_
to The student S _
adcnded Caude A

Hgo2ithon

Step Stant

step 2 Input morks


step 3 Check fhe comditions
if pks z90 then 2ade_A
90 7 mc ks >_Eo the aude B
G2ade C
Eo7 monkszGS then
hezaise Gaade o_
Step4 Stop.
Page No.
-

Date:

flow chct
(Stawt
mput maRks_

if
FRTade

rede

meks 765 &rade c

&1ede

5to
Page No.

Date:
YoUvA

waite am clgo7ithm cmd dnuuwa flowchuwt


Fimd whethe
finc
to
anumbeis_prfect numlbe
Alg02ith m -

Step staut
step 2 Lmput n
step 3
5tep 4 Foi= to n
step S if_(n o, then
step 6 SS+
step 7 if Sa1
fhenp2int_PerFect Wumber
Cao to step 9
step P2int iuev 101s not_perfect nu mbe
step 9stop
Flowchclt

Stant

7Imput n

Sum 0

SUm =Sum +i

Per rec no ot fPer

5top
Pago No:

Dato:
YouvA

nefine Deáu21j
Detine:
DeeugimG Tnte p ete Co2pilen kebubczd
Toke

pebugaia9
Lt s the _p2ocess of de tetin1
dmdL
aomov29-of ezisting CdLo Tentiu er7ozS in_
s o E t u a l e Codethat_ Cum coLu se_A to behuwe
mezectecly 07 czCL_Sh TE is useo_zo inea
bugscnd ze sawe_ defets.

Ttep1e0N
he softuare by which the conuesior2
of the hiah leel intiuc~ions is pze fa1ned
lime by lineto machine level lamguaeIS.
Knou27 CS m telpiten.

Compile2
Connpten Softuane that taunslates
Sou ce Oode_it in a hish leel leonguoPi
m to _a set oF mcChin_lomuCge insfiuctios
Tho com_bee undelstood by q ciaitu.
CompuTen's_cPU

Kealod
They ue pedeHimed2e 01VEol wozcls
heVe spepiul
usec isn p20A Om2niM Thel
Keuozcls_ae_pat
neamin9 fo fhe cO1pile
C n 0 t _ b e used
OE the taa_n d they
al Cm jdentijen.
Token Smcllest_ in c
C
Ttis the
compilez
baeccks ap20J1
022_
imto
int,
fotho.
O
mal
The
Possible
stageso F the
umib
amdp2oCeedS

Comgi lutim
thVahiou
9what is diffenencebe 30Heacleile
TeenHelr Li/b ond
baay file

Heade2 file:-
The Files thet the
theompie.
to callsomefunctiomcylIT
Files heycomtaim The FumeiOnP20lo
arecalled
Jecde
ho
po
he clso com tuin Doid19pe me Cons
Cmc Constunt
se iththe_ib2a2ieS We uS im
use IM cludo
to 1hege_haaden files inp2091am
Taase_Eiles ne uith_h eaensim.

iba ile
Li biany is the plaé whe p
ectu the
unctiomcuity 15 ihplememted ig
They com baim fun ctiorn hody
Hecade Files MVO twO ppos
Sstemm headen files_derlene the
to ponts of the intel faei
mclude themí opoutia System10u
n
fhedefinition cmJanln_p103deron to supp
te in De le
sterm
dedanetrons 4o u m e l a t

auls_ cme_lib
lib202uries
Page No.
Date: YouVA

ow Qwn_ hearen files


o
fFo in f Foces Con taim_devdutins
botue@n the souce files
p20320m uchimeJ0u of
eleted_ decouLtion am haue a g2om)p of
mos muco definitiomS
t_oF_Which oe meeded in seUenl
iEfueni suR cR_Eiles it Ís
to C7ete q caood ide
heeder ile Fot them Heude
ile elimimates the lahou
of fimdin cmd
chamin9 CL the copi Rs d9 Ce cLs the
aisk that afai aleto ind
eSul one copy will
jn_incomsistencies cuth _p10110M
loEplain claa tyee in C with appdapidle
dnPe
int
Tn feron aeghole numbezs fhcut cem
hawe hot ze Dposize md aeactiv
Wcuuebutno decimmelUalues size oF in~_
i s usu ally iE bytes 32 bits ). e 0-S 10

Flot Cnd duble


This usecd to holed2eqd
numbe2s flectimg poimt nmbezs cem clso
be 2epesfmfeel_jn expon entio size Of
float is bytes cmd size_of double is
btesS
ChN
kmoid chen fs used o1 declenimg chulackE
Pe Veufubles Fo eca Ch test '

he size of chcMeLten Uo2icble is 1 bte


tHpe.
incomplet
i s cm
Void_:Void

o 1 no t9pe Voie con beRa


Void
nothi19-
think CSabsen

Shc2b_cmc lo
TE On need to Ucd
numbe2 HOu _ca se_c PeSpeci lo.
amd b can s
Hen e Vo ieble s_a
eto22 sto0
Hoo
in feje7 Values-
oim _ n u n bO

Sigmed_ cmo maigmec


TnC signed
msigne e epe type maeihies CaMCam
1o dA
dotesto2ae efedatA Hpe
them
2 Ums nee înt Xi

Hez e the vaicble_ Cem holel onlj 7e0


d_positive Dcalues beceuse uwe hewe sed
the Umsigned modifie.

Define the 21les fo Vouiebles


declcut
ion. md Cons3tumt

RulesFo2 1aziable
2A Vapioble
nme cam oiny_ho)e leterSdt
amd umd o29cO2e.
Page No.
ouVA
Date:

e fi2st
2The Fizst letenof aViable should be eihen
eNe2_o cvn umde2Sco2A.

They e hile_Spaue 's notCuloyec

d 2 e iclole
eAn ieble am e 2maiSt_Not b& an4 2esejdL
koyLOTd int Jeto ebc

Rules o2Comstem
n
ciro blaekspuce bet pomnsigm Cme alonc
define iS_pe mi ted

2 must be Ei2st _chacter in line

iI2E_defimemustnot end uith_Smi colo.

foz data
(i2 5ymhalicaames_ce not decened
tpes Tts data tpes olepeznds On the t9pe 2f
Constot:_

mayCLppetin anyulhene h
(v2 defime Stuzements

but befaze it is 2eFezen ted im


he P10g20
the po2d
ss02diecve_no

ce
Ezplain_p2ep20 nz oad
12
2cp¢1mSion
_alithout
a2U2
at
ms0n
TeanpleuLeSche

ousin
5y2nbolic
COnSt
Clduei te9S

Cessoz Cil
p20CeS S_ din ectiv
The 22e2o
inseelted imto
soNce_Code.
hoze
eL2 File_ in .
n
|kou) PeS
21oL.oL
ezpumsion clusi0
compiletion cma sthen nics
Comditomcl

Ldiective

meczoczo e p o m s i o m ' A _ m u U i o 15
code_o2 Comstomt clue Tho
e
is
5mnePiege
Smmel
pol
laith_c Sou2geode befoze the ezeuttom of
C 020m

Mac2o ezpaansiom avith A2 memtS jUs t_ikp


macoS_com take ONgumenTe t O dREim e.q
nao thou Us 25 angumenUS, OU_M sot
pazantes betweem he PeUz
im th mc026 deFinuttom that eke
opeHRNthes0s
Fumcbion likeThe pC) An etens must matw
CC iden b 1alid
tifie2s s2p 22cted by_
Commes dnd
ptionaly_cuhitespace
M oeLpCiMsio7:
t is used
Ot mumbels mcall mlíime_ imLfo2 2ePplacem
fumtio h
Manb temp lute:
Temploute js used
d to
toD
ui
Pago No.:
OuVA
Dato

AcUum tejes oF usn9symbolic connstomt: Ihey can


be
b e usec
usec to Cssign cmes to uelues
Reple cemeni of ualue hes ta bedone o t -
om e p lace cmd_ahen Rven the name aepeuzs
n the terz t Jets the VcLlue by ereeution
ofP2ep20cesso2 his sestime.

Smbolic names Uze calec_comstanb identihen


Sin Ge the symboli c nane c e COMs tut
thei Vcalue cam
bechuma e within_
P205202m 0n The Othe2 hama Je2icdble
Valwe com be chumgea ithim_P20n0m

tinclude <stdio h>


#define PT 3 AL

tpedeF_float 2.a
_P tzntf CAdius

Sccam F_C / F 8 2)
a );
p21n tF C7 E Im

EntenRadius of Cizcle: S_
Output:
Ae_of ciacle: 18 Sh
Page No.
Date:

13Wheutis 20le of commes in P203.7


le mg uuge
n2O2022mi.
Comments_CUe_teoc 90tes cidded
P2u92C12m to p1ovide PRplaaCAOy_imfo.
ahout the Sow)Ce Code. onmatio
They cUe used in p20jDZ7m17y mJUgge
documemt the p201am cnd 2emi md
P2092a22122 i9 oF hait2icky thimo
Just did with the code caNe alo_helpo thimst .

leten genention_fo11 umdrsianne ing.


Mainten ce_6E co de. ond
D FFe2ent_po20mming lmguage ses ditlt
oy oF meludimg eomm PuS 14ses q dif
he SoAe 6
Plomninj amo 1evIew 122:
P eudoode_uhich LmcomenTs ,45 Sun
p lummRol befo
the 5ou7ee cod. u1itm

Cod R descniptiom Cod


odes cziption is USed b
the p0910m m 2 to
otherumdestood his imtent. make

Re301ce_ieusio n
logoSdiu920mS amd HoU
CoMsisting of AscIT c
conStzuctions_
cod fo1mtfed esm be imsented m to Sow
to sou
SdS Ommeni
commeni-

You might also like