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

Computer Chapter 1

Helpful

Uploaded by

rcrayan71
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Computer Chapter 1

Helpful

Uploaded by

rcrayan71
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

alASSMAte.

Date
Page

chapte-
Basic Of psOqammOp

aosdbo ond bu cheesKt

Algostbo

Slep b sieppoocedUses io solue apaoblem


eg nde ao algostbm t find tbe sum ot any
wG oUMbeBS

siast
Enlesthe kiost Dumbex
3Ebte% ihe sec0od oucobe
4Salb
Spaiois
siopP

site the an algasiih o find Jhe caea a


e ctagle-
Sast
antezthe lerngth (
3 bseaddh (6
ASSMAte

1splaya hr_
SioR

wnideAbe algoailbnt io tod e azoG_of


pesimeÀea of the cuas e_

e s o a ciscle (axe a: T , 3 4 ','r_0in


elen 2 Ir

Lans Siast
en es 4be enath (a)
Azo a

Osplay Ac and pr
SAop

Lo.
sdasi
i0p adivg Lo2

31 x
ispla 9od
aASSMAte
Dafe
Page

wethes a20 penson iS eligible to


lCheck
.Waite aN algoKilbm

skax
e0lenOU_Cqe Ca)
z19hen pdio) aaible
e
o l aiqlb le fen Oote apIc
Els c
4ska-
l o d chast

Symbol

2 siasi end

loput loutput

PocCess
DecisiOD

)Doau be flouscbast h e suom o l n s


Awo DumbesIS
tput val pu
Su
siaai og o A- lue of 3 AB

Psinet sum stop

2Drsaw the {lowchaxt fos calcula tina. the


ozea abd pesiooeles Of secto.og.le
aps ioput
StadE e seadLLCE)_ A-b

.2Clb) DisplayASP stop


3) Doaw be flouwebast to ind he-
OKea and pebimeleo_ot cle
bybwesietaenoeoyiskrrieitskiiskstiegeisivancèissa

ansasl|Input sadius >A: 3,11'

Display Aanol P. sBop


at

4)Flow chant to check welhes Opezson


is eligible to uole oo Dot
aOS:

slaot

[Dput
ggcc

YesPaliotelgible
a 18 fsvole
aliaible
Ko uod
ole

Stop
Dsau a lou_chas to fid tbe laaenk
s
CDanq ttuoDumbeas
A e

Staa

lopul

IDput

es Disolas
A:B Paalcos

Qisplay B DisplayA i the


is Ahe lana lasees Dubmbe
esh Dumber

slop
clASSMALe

aDoau a Alo cho lo poot ouobess-loo

SHas

No

st.op
Onaw he llowchanB to paid! Jhenm
ooDsS l o S , 20 OQO.

Stant
S

PoiDt

No
Stop

F 1be elaoks-
Algogtbmi a set ou skep meAbod for so
ing apsoblem
Seleckiue stalerneDLs ase executeo bes
d upao Conditioo test
3Hes0Hive stalke ments ne exxecuieolbe
ed oo CoDdikioa leE
h e qsapoical sePsesentalion_ol alaosm
is floua chast
SeQuern se sBalements axe exeLuled an
ale anotbes

lnswos {he EoloiDq Questions


ASSMAL

Oekine ahoulbro.Explaio he chasecleGisf


CS of aaosHho.
ans Ho ahoaltho is a poocedure o6 ognya
os Soluing a pooblem.An agolthm can
oe deetned ar slep by siep p toceduge
ko solue q paoblere
chaaciesistics
n p ut - An algooitbo may os auoot a
aiae ibput
Output Eadh algoallo is expected to pao
ecu se at leag one sesu lk
De Ciniteness Fach inslauckion Maybe
clead and unambigu0S
Fioitene ss
(f \he instaucdions of anago
sim a s e Oxeculed, the algogthm sbouel
tgmioato afez Sinlte numbes o f steg.
FCectivenesS Eueny SBep in ibo algosith
m ghauld be 0asy Ho uDdexsiano

2.Delie flowchast anod il3 examples


ans llouc haxt i s tbe goapbical oa picioxlL
asepteseniation ot an algosithm uith
Ahe help ol di flessend Sgmbol, sha pRS
clASSMAte
Date
Page

am asÄOLDSin Otdea to_ demaosft


apaOOS OS Qp6oqaAnO Me

Sumbol DQme

StasElend

Lpuloutpub
pocLoSS

OeciSion
3wba ase be staqer iuolved in fhe2
olouelopmont of apROQSQmm
aDs as wDiioa alaositho

Coding-
) exe.cution

4 sido an algosiibm to Gind the S


ODc auesaae othsee_QumbOsS
E i e a the tast ouoobCs a)
nes the Secon aumbCd
Enled the Ahiddaumber (C
s)Hu qiblc
3
Dispay auOs A9e.
stop
S Wsthe analgoaithm to ind the ade|
C o ea tai angle
ans Staa t
Fnte ihe base Cb)
3Entes the heighi Ch)

sOispay- Ax
stopP

Wste aD algoaithm to efind uheihes


9ueo OumbeTs fs odo oð QUeO
point tti_an eueD Dumbex
lse po ini t i s an odd numb
Endi
Stop

Daaw Ahe flowcbaat do find lhe ase


Ofaciscle
staa t

Epies thel
adius (S
A

Osplay
A

skop
Doao a tlouwcbaat Ao ed 4he gnalles
Omong two Dumbess

ase
cASSMAte.
at

slant
inputa Sb

if Yes Display
eouall Do

Display a fa<b
isthes
alleso
DsplayB
S the sooallerh

stop

- wbite o algositbm and a flocbant to


patDi Oatural numb03S tsom t o lo
AxsAlaorsitbm
staat
2)Le T=L
lASSMat

apoini x (iO
henx CtLand ao o sfep

stop-
flacbcst
stast
LeB c-

Psint

No
Stop
o aite an aloosihm and a lfowcbasi
to check apesson is oigiblo ouote o
Dot
AnN shaxt
2Fotos uOUs age (a)
Then paint "b eliqible or uoi
Else
ASSMALe
Date-

pdini
PDint nol elaqible los uole
Endif
stop
flowcbaat
skat
inpul al
qe

yespsini eligibe
pllible fos fos uoie-
ote

stop

You might also like