0% found this document useful (0 votes)
22 views15 pages

Introduction To Computers

Uploaded by

aksharvadwala
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)
22 views15 pages

Introduction To Computers

Uploaded by

aksharvadwala
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/ 15

Date 2.

2-l0
Page
w t1:1.Intsocluctron
bLocxDIAGRAM OF ComPTER

input deices (keyboad, wouse


SCanne)
L output devices Lpsfntes,moritoa)
*Computer udesstands inasy ntespreta tion
StoaNE URt

Pmaay
Data loud T/P Seconctaryi
PT
URt Ut

Conttot CU
lo
AtU
CPU-

a s y memoS y;
- RAM ROM Coche-Reafster

* Seconclo0y
HDD -Floppy -CD

BIOS: Basic Input_Output 6ystem


RAM 5 volate memoby hel tempomTl
a d e uvodKing o n
Stoges t h e e s you
ROM 15 non-volatfle memory that peTmanendy
Stors@ Rastouction% tos Computes.
Page

imaTy memosy iS disectty aceSsi b b y


Psocebos CPU.
Secondany memody S*rst qet ioansPrred
topimaTY_ memo6y a Len aTe
accossed bythe proces,thiS is
becauGe pToeSoS d e snot directy
nteroct_Sith secondaTy memosy
c
LOnat are the dRFesences oetuoee

HARDOARE SoF TUOARE


.Physical components Non physica parts5
c hpestosm 5uch o s co\leztfon ot
ditterent ird of tosue cle, sams &
opplcot+on &nstouct Ton
Nomally Sottwase
pectormsspecittc teSu
DifFeet types of DiFeret tpes
Hasdoase: e-OP 5oE twase System a
desies,storae % Apptcaton softooe.
psce5STq uunfts. O5 andiCalculartoz

Hasdeae may Pesfoarneremay mar


de poecutes 6 ame ot wantance
qufsed 1Pue uposte|
.y6u doesnot UTuses an attack
ttoc haduere Sofuoa?.
o

Accestime Gncrese)
6e
ncseae)

Costper b t
increaP)
Date
page

Hfon level larquaaeJoNo, 6SIc,C)


Loo level Compler
anaucc tes p6e ter.

MACHTNE CODE (SiraTY)

HARDDARE|

Code
Cfect (U)eKeqitat
Compilev Cole LkeG Ie.
hot ase the_ dRFFesence s between

ComeTLER INTERPRETER
.Tt taues ent se , Taves ne
pT Oam a t one ap
by 19ne
pso m.
.Oorect coe No Ofeet coe

orking Compiler ation Comlatfon &


Mechanbm 5 done bets
exeution cone
executon,
LRmaltanequsly
peed Comples foaster Tntepset aTe2
Slaey

hemobyCKeates entfse object Lous memoay


Coe.Mhes memosy C re
N

D
clASSMAte
Date 26-O
Page

2. Akoithm Flouocmagts

Algorthm: Step by step nstrAction


Aosolve any pfooblems.
Chaoacteristics of on Alqorthm
ell cleines
Coell de firest Output

inputs

Ceae
Fte-ness
no

Ambfguos Charsateristics

Feosib
Caruage
indfperndent
r e an oqothm to adol two
umbers v e n b y t e uses
u te olgostm to ffnl the
lorsaestnumbe Out of oven three
umeKS
Algosthm to acld two number s

Step1: Start
thbee
Step2:Take ts vasiables a,,o,
b,c
Date
Page

Step Pesfosm oddition of thais


umber a+b)6tose2 Value
C
SAepH: PRat _c C VeSslt of
aoldîtion

Step S: Stop
Algosithm to ffndnumoes om
e n t o mumberS

Step 1:Stost
tep 2 Asu uses o eteg thgee
umoedS a s a,b,c
Step Chec f = Rs ageates tan b.
Step : TE trsue, check f a s asecte-
han
StepS TF a>,ten psînt
osqeSt nuymber
Step6 IF oic, then
prnt c is
latqes numbe
tep T: LE a<b,ceck qF b s qeate
han C. T tsue print
lasqe st , ey elSe pint
AeP nd
B,

C
O + -Pa.qe comnectod

PedfPnad poces5/furcthen
FlD of aaof tion Df thsee num beos
(Stast

/Tane ap,c
4 esSi. nq Syw
Sos decasima
Pesfoawa VadabeS
abtCtdl
Reacd oby
nput sywnbol.
Pta?
Step

tsee nmess.
5tast Pxnt
tapaest
Declase ao,C|
NO

/Reo a,b,c
No (Ye
int es
Alagest /P?nt a/
agesY

ointcNO
l a s ge st
Page

Flow chast to F{no wethes the


aw a

numbes s eNen oT ob,


ven
Start
Declase, Va

Read a,

ersFes
b:asAT°2|

Print P t
S oda
a 1 s even

StoP
Pog
toC
Unit2 - Intsoductfon
Stucture of C
COwwent/Documentionation,

Lok -heode Fles


#include 2stdfo. h>

Declase funetfons
Gulobaldeclasatfon //Vasables
Fdefhe Pe 3.14
Maln PKOgrham
vodmaint)

P5oqsam
Feotu2s of C
25imple
enesal puspose lamguage
Bloc stTctuseol lenquage
Mfdde. leve lanquoqe
2Aatetosn dependent
FostaSle (sae Os
oyeful
Case sensve

2 yabased \anquaae
COmrler boased \arauaq
Page

Fost and efFFcfent


7 ast ly ténstble Extandable
Vses ard Applfcoton oft

o develope System Sot toa e


To develope Compfless,Tnterpsetes
not aSsemuea
To desel of applcatfon softa ne tfe
5PTad
J t a bae and haets.
T o dexelop_ netuaosk oovícos
To develop em beoded systan
Todevelop the Fiomae ea
eectofcs_commwntion used i n
ícTOcontoolle
l o devlco
.To deelop Of Kerel & Crsaphics
SCated'aeplicatfan..
Deut oP aep lfue text adtoas
To deiele efn+ epoolesos as
e l l a s anti vssS

Tye@s of Vasfasles mC
17 loco vasGbe: Osed nsicle the
Fuvctfon Os ack
2Calobalvasable: Veao outsile the
mo FuctPon

O ta+f vasable: Tecla sed t h stat?


ueyoD, Vasiauethat
etafn lrs Nalue Letueen
multiple *uctYon Calls
A)Automatfc apfalble
Declaoe insfole tLe
b l c ,are qLomatic vasioble.
S tesna a tfabie exter n' keyw0rd]
Canke. Shas@d LetCen
uile CPes-
TokenS
mauest (ndivdual yapt o ap0OqTam
Ctokens
keoods: Psedettnec uOdS useal
anguage (iC 32)
ioletitex: Vastaldeg &namneS
wen y use
Constants A alues
Stnas 5@querce of cha Jactexs
(tesm?natedl uwrth nnull
ull

Spectolspmbols
chadactes O)
SymbolS 1fke ta,=y
aeused o Spec?Fic
nction.
esotons o eq: loafeal, bitwise,
conoETonal ete
symboLat ell, copute
COwputed
to _do
sqeciPic types
ASSMALE

Date
Page

peatOSS

Adthmatfe opezatoos (t,=, / , J )


Relational OPeotoss:
o cm pa0 two_va«@S,în conolition
=<= - #)
==,#) &ooPs
Loaicaal Openatogs (& &}, E )
tomesqe condftons & decfsfon.
AssianmentE p e s a t o s (=,+5,-=t=,/=/o=)
Aaseiqn yalu@S to vaslabJe
eKement& e c s e m t Opesatogs
+ fnCKELLe vale Of vasable by oe)
deCseae vale of vasiable byone
Londttonal Opesatoos
Sytax:
exp 19exp 2:@xp
. i t i o f s e Opetatoð ( & .
pecat opeatoss (&, si2eot,

You might also like