Docsity

Problem solving computer science, Study notes of Computer Science

Partial preview of the text

Download Problem solving computer science and more Study notes Computer Science in PDF only on Docsity!

Steps tor ‘Babiem Zalvied om ; 4 Amalysinc- athe: paeblenn sd 2 Develepi an atlgerittan s Carling iti i Lars) 4 Testine?_aned:* debsging t ' eanmra na pier | cry . 4S oni 1 L Bobienr solving begins. “cuitth the pyesize Gderiificatica | eaten OF +he prblefn abd ends! conith —____e | z Developing cn algerithm. a o || EIS esstoticl -to~device ents - A Eases ee Padgaam cece fora giv oe ern represented! in nothin dan, eas algorittm Geqcand is cauec an— ble Strat aaith erty pA “efining an algadtiim agittioa plan and Keqp 50} a thee Aspeds-oF sth daha ie ie ablets capt —_— C Scanned with OKEN Scanner SQ Sees STF given prpblenn mene than one algoxithrn 1s [ ; =n? ave tm select the aos suitable 4 { ae ee SET gD RTT Pa SpA Ty Creshng ‘anc: Debogging. "The ipiegram created Shouid be. tested omaventous 4 { i pcramettrs athe program Should amneet the: arequiemin. “As of the Oser Hemost respond cuithin dhe. expect! input wt bes : pial hy Wt the Presence of uSt yothekicall S.ynlec eXYOY no } \ ed ort cull besdbtaiied bt ease the outpert qencaks : Lolits incorrech then: He fonsatatvelaa should be’ checks fer logical exrirs- oy | nial “rirkded BL Shes j of je Software dnclustries Fol lens: standardised decbnlgue a testing amnethhds ike wont: testing carnponent ee EROS dating. modtqradtion : Sysitro , syskin esting ‘and mame rete exeentance: testing: cohile “dlevelaring’ Complex ‘plication | = «This isto enshre Phat all the sofia onveds —t_|L ete Gin Alt ate basins < ne ee es ees ae Es and cjootks was: gespected ¢ >| ‘oY : —}-— "The eors or defeds -fa Wine in the dean ire I 7 here tolehog Gedi-anractit, amd He: progrim ls_again tested his iContindoud: Hitt 1 U the Bons coe — = l genmaved ! from =the paogranny | pee I ae Ca 2] prey | eg ay oe eae i C Scanned with OKEN Scanner } i} [vate net soiteness = Te_—aiganitbea_alae cays stops citer o— —~ | nite aaumbea_o £ Steps eet Tp. ¢- -the algorithm © rxecei@s Some fopet ee “3 Teulput ibs aljoaithn produce same output 1 ie a Sainte an algorithm to find the s f coember be) Step Stepi 2 Stont stp 2 2 input cL Member and Store th to mom. eg » Compute nom nam -G store tin square | I 1 “y lalrite om aUgortthm calculate the: outa and pevin! Tef a nedangle- a 4 am Skp 4 Stark ws Vartues AOS ag \ pie | Slep2. Read “length ond _ breadth / aridth. : t | kp, Compute arerof sechinale area = 4 ev nD Stept Compute Perimeter of reckangle “perimedta= Qa Ch+cy'] ne "Ses | Pat men, _perimeder —_ Sip inp —4 . 40 2+ i) 1 Shp sl Start been inden es) Stee uk e__+_Sten ol Read three Walutes feds cal -therm prindpal amount Tl | Hime and rete of drferestiin “i! Va! es Compcite Sixaple interest Six @ackex DAs | 1 | Ro A aT KR +06 et | {Stipa Bit Simele tnleresl . Weaeaey 4 C Scanned with OKEN Scanner oo ——= ee eee welinws ers too =e [ pabide_ckO- te crn .algon! sigan es keep ~_ mumbers —— rie — {bse Lt Start — ee call. Was on ancl be a--b_and. ato ito eee ae 97 — Read too VLEs 3 Compute— ee Ste IC Punk nom ———— cease man ail ep, -Stop — eee ge — 1 ‘qnite_an_algovithna “ap Fine the-Largest—* sof -r0o nnarke —_ ee ee ee De Sit ds call ab Read 2 valuics 3 ee aan a eget “Glepy| £ ise —B is largest print jaqest © Value. ‘stop tei eeravet ot “bhile. an: mlaoithen “swap: the. value offend nur a vsing gr. (thi) value. ah le i Stor he Step. Read abo wale Jet's callA § B Crate tempaary vCototble Net's’ Colt emp pt Ghore the Nobiclof- A -initemp: 1 iit assign the value of B toA assign: the value of +mp-to- Bu: pisplas) pew Value oF AEB bruv — | Stop _ aa ‘ . 4 \ Gniie_Gn_algorithm checls if Fa nomber faeven of dd | — Stott Read -one value ells ca oo SSS ao — a a C Scanned with OKEN Scanner —_—— “GeTo find Larges of 4 “thoy ——e Sr nabs 5 ts — : \ peop bo th a : ty — i Read af b | i ——— 4 / Fe a ry - I os PA Read biped _ num = ob] — hme —T tt oo - f Prim mum } | o rf adb>— — -_ = | = Sp = | eee | | | : 4 V [Pinta | _/ Prin) b = IE Stop ) ee! i | a Ls - \ (4 . to Snap the Veluwe of Cop ) i ~ two soumbers using - | ra value | - r Fa [ iG _ _ a — @ : Timadat | ZA Tir — ee S ets — 3 Fempscc—_}_ : mc z o=b { _ > b= terap ~ I, | i ee ; | Priok.a, b | | = i = : ee G C Ston _) ae C Scanned with OKEN Scanner 7 . Flo 62_chaxt : 2 | Foc chart tsa visoal ort pre: cnlation et algorithm — consist of different shapes Like boxes ‘clicamond en eee fo owed - connected! bu _axrecos. || Fath step denotes A step in ‘the Solution: iDoincess el Roca indientts the. Sequrience ox connection boii f 4 g. ’ —_ betreen the Steps il Le I Flow charts tel Los “tn clanifiy athe skeps. Pewalved tn i Tl efachindg a Soluuidion ' | | Fach shape represent a Step ofa ealiition pancesc| | ; Shapes to draw. flow chayts ber | {Etomchart i function i Description . 7 5 yt io \ he | @ Co} wre - atarl [atop This_is ‘also. Calleccerirak = wa fies ee = Symbol it erxliciates fog" t tohese the floa stots aad } 2 Hl end. a @ _ 1 Process | log is. ‘alco called attiensgen | - we Doo il neparcserita precess — Lartion ordsingle Step ¢ }e rey fin ret ae . |_(3) Van Decision - }'-A. decistan ar hadeching ie, — » - poled ‘osodidday Hes oF Ne! MSE of \ lore tine /false Tdctian i is} — asked hagdon ans. -the path: get: