0% found this document useful (0 votes)
8 views

PPS Module 1

Uploaded by

snoushith16
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)
8 views

PPS Module 1

Uploaded by

snoushith16
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/ 10

12m

bdule
( nUmbe
O sedocode
START
0
Tn ikalfze sum
Cr)
Jnot enky the vmber F elehehs
For f 1 lo n
Inpt Rnkr nu mbe i
AAd enked number ho sun

Display/ OUtput Aerage.


END
9 Algori hm
Inihal ize sum to o, wheh Shoee the tota)
Of all numbers.
enteshumber o elemens n
AsK User ho
Qaeh n b e r hom 1 do
" epeat for number
enJer a
TAslK vses +o
numbes to Som].
Add eniered
Caleulale avenage by dhvidig Sum] by b
D'splauy the avroge vesult
2 Inat srmbex: 1, 2,3,415
Sum |+234u5
Aug Sumh 1sl63
2 Deronte behueon Assomby &Maehite Ag:
ASsembly machine
ASsembly languases Uses machin ianguage uses
human-read able tangu ae
" I is
Co de (o: 47's) birany
hoe eada ble and sfn bfnay osm at, mak
Closer to hvman anguage
eAy alowev mogag Louest evel progva mty ce
tanguaye-hman acab Undrsioo d by dhe CPU

Ihput hunchons:
) Scan f) Used to take fnpt from usey
2) 9etchar() egde a siegle chameler Fom fnpot
int num;
Santl"a, 2num);
Oukput hnchens:
) prtntfO vsed to d'sply Amaked outputF
2) putchar () vsed obFput a strole chavaeley
Esnt num10;
Prfntf lrhe vale of num tse °kd nom);
e a (Orogom o p Asal valee
# fnclvde <stdioh>
2 Int main ()
Chay ch,
4 Printf( en kr a Chanacker:
sScan k(^c,ch)
(intf(Th ASCN vawe of is odn, Ch,ch);

|}
Qutputi B
Ener a chaactes
AsCIT valv of B is 66
The

wta example
Donvd dalayres ae data tyres hot aYe formecd vsing
basfe chatypes "ese a ow you o creale roe
Complea date, shuces.

An anbyfs a Colleckon o voyableg of tte sa mo


data, stowd fn tontgvous meroy locaHons.
2nt nmain() {
fnt Num [B], S19,20,30y: olemetak indo 2 i: 30

ehn O; }
) Pofnkrs
Apinter ís a Vaniable that stores he merory
ad d ress of arother Varíable- ey altow indiect
acess to Vamables.

4 fncve <stdfo h>


Val Ot nn: 10
2
ind matn () \ale at add eSS
'mt numzl0"
tnt ptr - lonvm;

pintf(vlbe ot adies Shoyed in pir: n, ptr);


1hehn o;
7
Symbols? ahe an eKarple.
Descoibe Aouschantk
reag 4 Rming d
Cprogvamin debu
Oo'scve aböut any 4eoih
operalors & explain
O ( out all

Avsue

O pesertbe Rourehard GSymbols? Gheearpb


laochont is a graphCal-epxIenahon of a
) A tacnee ot sieps usvay
standardized Smtols to show, vayos aeihi
Ghd vses
and dectsions.
Symbols vse in Aouo chYk aes
Name Symbol Rope
Teminal

Shnpt fotput | Ihpt(ouiput


Of dáta
Process
perhomed
Deolslon bo Deision openaon
Sed as a conneco for
cfrcle atReent pons
Flouo Oin 2 Symbols alsoep
Houo ereeuion.
Ramde for Fochart
Start
Inpt an Jkmn'e
Snpt GGST ate
187o o km pree
Do18xDempr'te
lAral pce
t Anal prc

tanguoy& at are wsHen ustng.


6) Pragran
hgh-teel languoge 4te cnglish. conyekt ba
undenstoodiby CompuEy: s
This to be
low-leul loguase Sing 4 tnepreox Compiler
b rease eun Programs n C:
sep1) Creae a Soute code
Gpen a exteditorr TDE and creale ,
Proseet-Ae and Sane tE wh an 4lextension
ekken
Sep(2 ompte souree code
The comptlannts he proags'0 covenh Aghleal
Lomguy low-leuel (anguaye s
Thrs s dore aldur cwrirg 4he c0de.
Skp6) E(eutiy eNemJable ile enens ton.
Wth an kexG
kPencomptiy te esle oeas s
|Sum:3 bz3;atb Sumears, ntnt
atb sadrton
operhhons.
o maheinaHeat
perfosn
bast ised are
to
),) (+,-,*, qpemdor Aesnete O
topt Bthutse
ophrAstmete
ha oph Logical optASstgnnet
r
onlifonal ojeraos Relaional -
erahen:
yahenta/1ogeol speehe ferfomna
ompkrb He
hels thatsymbol qperakor
aa n A)
vesttnegulf sep®
b
Relesanal
operaor s sed do Çompare valueg. Tey hem
his false Co).
eCi) or
pitet tdrue
eqa to
gnatrinen asb
es han acb

odpu
Boh na
ahe
else

9 Increhent operakor (tt,-)


Deoremt

ncherent O+ (44q
deoreh d a - a

tnt =+;

nt

Pnnf(updoted hu
brockls
ele
=Sentcole,
Shuthy Stame
ponchalos separae caled Used
alsohe
deha
mearg Separak have 7hese Symbds1 Specal
openlor attimote atb; Sun int
dhoroekngte
charaky L
ngery reas Ehumetc
Change, dont that vaeg Aredonstans?
CalblakAm yVanabk, BA
mes seto a
win fochón vasabus to
gten ManesTdcnbRes:
gretnyfCrello
,woTd EZ:has
kekfrpresent foued Qutes, dovbe
wthn endosed Chamaelers Gop
op Shing
S:
em,stee tnt, nevde E
In
y 32C* moanlg peclal ahas caoTs key eah
de. reserved caledas Keyuordy
ae Keylwrds:
ymbol spelat Tdenshers
"shngs
tonshank kaguords "
are ToRon
h
ep wtdokens 6tpse Sormasje
bot
lt1 resu
x:2 otale HeBnh
b3 o!vale teEney
2.a: valotue the Entey
al;odenomi
r humeraor/
n Tesult= 7
syelsei
eror)") Pstntf(*
o){ 1(denomí
nal=r s
a-b; denominatoy=
42
numea
=
value
); : of tHe Enko Krintf( |9
b:"); Valofvsintf("Enler
e te h
Stanf(%F",&a;
a); valofvePrntfEnder
Hhe s
Tesolt;denmlnalur, omemtor, Aoat
a,bX float 3
C)
mafn fnt 1
2
4incletdto-h>
a-b) expessiom
a
result Dsplay yt
nimeato/dorotnalo resoF Calcak
Check
(ox-)doropnah=
ceromnahr Codeutase
nurab Coleulae
numerafo,dbrpmnalo,
Tu1b JAnput
a,x,b /Inpt
Start
chart (elos

You might also like