Docsity

Computer science -Program Analysis notes, Study notes of Computer science

Partial preview of the text

Download Computer science -Program Analysis notes and more Study notes Computer science in PDF only on Docsity!

—2t sogaamn. Poa USS. _ ~— _ . * Pwogram _ al eaesiie — oe rT m_is 4 Ss a | J 1 qwen to (Gu gs er inst Luction | “specific tacks fom | Steps involved in prog ral Probkan A a 2) Destan oo a a Cods 4\ Testing a é) Doauméntation — | H FAW What iis progvam 2. Explain Steps involved in _ pLogvam development: Jy maeleal 1) Problem Analusis = Generally every program. “Reed input olipur Stoxage | pacéss 2) Desian :- Progam is divided into small 7 [ module and -+hen evey module is design | seprately Vavious design method ave _ aailablé user can choose ony one of _ them To i) GUT base 2) Object oxianted programming — | [ Date LT i . eass ee —————————— — — — = seh Sa language. - i\ Testina :- After coding progromer jy tect the progtam +o See Coheathey is exebuting “ correctly ox not Te having Any ~exyox then user than bo: cee, tn And Convert it 2) Documentation i Where ove thiee +; at documentation @) Developer docu: wa this tune all inimmation related - __pxogvam code designing methad | _testing method axe. maintain _@) sex Documentation == Tr this tse ——| | \ ON ( noes L Oxe maintain “ me) Programe Documentation i- design — : document - CODY of How choavt and — _olgosithm Copy of Snuyce Code prog rt 4esting sept output Heport _ [5 show _3) Input a,b.c,d— 3, d= atbtc “1 Pent add 5) Stop I oma { write don algaxithuim mulfipicotion ok phan numbers 3 Staxt 3] Input a,b. ail 3] mul = Axb Hy Pint mul S] Stop ‘thum Fox QEXAGE of — | +hree numbers \ iT) Start \ Fs Tout ob cave» \ 13) Avg = atbtc \ \ \ \ \ LX i 3 _ l 4) Print — pyg S) Stop ~ | [ QO! Write 4 Algovithm accept o numbey Gnd ! display Ss SQUAKE —__ A} Start | 5) nour a Squaxe | 3) Squave =axa int Print SQuare 5] Stop 1 | | | i | { | | | —G)_Accept 190 number. and find mazimum _i) Start 3) Inout 2 numbers as A and B [a rE C AB) | oviot A i) Else C AB) ovinr B §| Stop Floto chayt_ is —o_ type of _diagsam thot ‘vepresent o tank Flow “ox _ process Flow —_chaxt ig hasically prepaved by Foxmality and understanding Algoxithuum —___ ppol iN" q) Grost) (Stop) = Rechangulax Rect angular With xounder Coxnex- to specify etaxyt and. Stop Tt is usually use at Stayt and end ok prog eam 5) [Input[ [Read / / Peint) Pavallelaqyam A Poxalleloayam is cepreserst input and output operation Th is knoton AS input output "Sy mmbo\ re) | 3) lS=atb| tectange A_xectanole 1s used to yepiesent pyocessin: as calaulating part Axxo we use, to indicate the dixecticn Flow Of pxogiam Prooess —— —_ _—— connector a, _. @& : (A) _ al _citcle ig used to connect inci __A sm Flow chart +o its yemaining part > | knouon OS connector. — : ee —— ad — Page No, Draw Flow chart fox Sanding avea of © —=—= G (Stayt) D Staxt _2)\ Toput e, AXeO ‘| / Input 6, AYER) 3) Area Ty? Qs?) a 4) Pyint oveo /Pxint a] 5) Stop (Stop ) (Ola (Stast) ZL Toput mi, TH, Ms Sum ong, ./ {sum =m tmatmal [Qvg = Sum/s | / Pent sum, og / ( Stop _) | Accent marks in 3% Subject then Find Sut and avexage SS 7 [Accept tion numbers Gnd find masimum 1D start Saas | |_—_—_- [3 Teput A.B [Loput A.B] [a TE APB al —_pvint A \a> Bf = po | - ln else A— >> 200 : iy a [Not aamited [ Jodmited not / [not igh xobant! / biah School Lf Stop iti (od Draw Slow _chaxt_mazimum among 3 no (Start). 1 E Tout A, acl. <82D ven =p é Ec RHE re] eel ee c | : *_| Soxting a J Sasling is a PLOCESS ot artanging - data item in assending ox_dessending’,., a] To _arsanae the. elements in assending ¢, 2 J at desending oxdex in _ax‘ay or _leagt 3) Novious sorting algorithun are used 1) Bubble sort sue 5\ Shell sort 3) Heap Soxt —_ 7 4) Soxh by Selection LL ¥ Algoxithum Suppose the least of number AC\), Alo up to ‘A (Cn) an memory = 4 :- Compare. ALi] and Ato) apa arrange them in desired caer’ that AL1].> A fo) Continue — Comparison Uniill coe compare with ALE) ond orance cae thor At n-1 7]: less than “Atn) — Step 4 envolve n-| comparison. — _ 2 8 Laygest element ia bubble US" the pase positian — i et | ae @ 99,50, 90, 4u 9) is I , — 99 So -4o, 6h, 2) i ee) | 1 , | 99 50, 64,90, 21 > Nass- | Bt n-| loo so. Cu. al, 90 | | foo so. 6h, 91, 40 | ee) | ALA ) NH K_ | | . 92,50, 84, 64,90 pass- 9 | lon , 21, Sa, 6h, 40 H=-2. o1.99,50,64,90 J = | | [Sorted list ig (91,92, $0 6440) 7 | | | Y | 4 | | | | | | | | "gw gee aPC a a Oe SB ‘AURA CRacceeeneeaueuan j Oss 8 8a gS SSC B —— bh 64.55 90g Spacey — ( n-\ hyo 6,55 2 49 +) hu, € 55 2 40 6, 44,55 8 90 pass. 9 sae? \ 0-2. 6. wu, BF qq) C 6, wu 2 ES 90) —— ~ pass G,& ub ss qq) ng | Sorted \Vistis C62 4b ce aq) pa 2 eee | “T———_| T—__| _ aa “Se | ee, aa — Pago No. : Date a) —_—e ee = | ee Page No. Date =o the eres “inet ____ | i alt ——+—9 19 3 4 | T= sie t Iw as | 5 = 9 exit © 1 2 3 4 5 6 ~ [ht [22 ]30133]40 [42 [55] MID = stoxt + END 2. = O7%+6 2 = vel Ol 9 Zu 5 6 \2\ |3)|32]33 bol5q)} 90 Min = stat + END i 2a = O46 ps 3