0% found this document useful (0 votes)
26 views10 pages

CD Practical 6 To 10

CD Practical 6 to 10

Uploaded by

Darshan Bhavsar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
26 views10 pages

CD Practical 6 To 10

CD Practical 6 to 10

Uploaded by

Darshan Bhavsar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
Page No.: SAL SAL EDUCATION Expeaiment neLe- Exerrcipts| wat Predictive Pare x Ee hela gaemme 142 4 A> Bb) ed ae He con soalek for jampi “Ey Clore Stock ET int inl i Sa te jpte drt hse} zdyem je} gehen 50 4 Vo Bett uae Goiee ahecumol 24a Soe) tr lena sherlem C Panducton ) +. Toate Cinput 1 Shacle, 2ipte, bophr 4 aa Crop == ‘5/9 IF Coowsern einput == al 1) np on Vel pate gies wrth Input == \o/)& SPtes = 5 storey Cpooduchon Ally PoshTotack, Esper, production yy f — - a Clsed primth Bars Invalid input 25 becaks J clse 1+ Cope= ‘Al y8 tt Gowen Input <= a8 paint Ga oBh We! Spte--5 Sterepy Cpovduchion , BY Js push Cohack,fspte, Prodochor), Clse id Coorvert Ln pub=> Yet 8 prinkp Car Edn); Spte--§ steep Cpoodvctton , dC'/)5 Push C5teck, Laphe, pooduchion ) 5 sf. elset pointt (Brmax: Lnvolid input 1!) break, 44 % clocit CGop==*0/) 8 id Comenbinpoh=~sa’d 2 primed (1B 9 AB nll) 4. opho --4 Shrepy ( poodcon, “Ba//), push Cdtuele )£5phx) Produchon) 4 elsejd CcursentImput = =b! D€ipaingt CYB €7)5 Spey $ elset prints CBoren!! 4 bata, YF Aisi k Chop es C08 Id Ceveeend bepot ==%e! Ot Pratd C0. Ee In! yy. SPs, Storey Cpodvoien eC) Push Cotock, Laphaj: papdudion.) 3 J o | elcid Covseenbinpoh == d') € prinh Ce 34) 5 5pte-- 3 else t pratt Exes broly YY eo eIsedt paimtd Oeror I) baeaites y if Cstacie Capiey. == 78! £0 imped Ciptad es BIE printh C’ Lnpot stony su ceessgully famed "5 af ebe & Pantt (% Pasting failed’) 4 4 sehen oy 4 QD Wat a C Pangea bo implement LALRCI) Pamery #Hinclude CStdig-h> include conn aL include ¢Shiv Chas + produchon Ty = ‘ Ss", Nasaall, p> bY Y; jr aekorn (6lad= 8 EWTN, BIL IN 8 2,3,- Ly eeaey, tetoy emis cd Sj ny go-40 C6300) 2 tdiny! BAY SUE PU RLY Rem Wi Ine Shack Croo}s Int ‘Epp = sl Void push Cint State) & statle, Cio = steko I Void Pop Cimtn) & pop -=7) Y Votd coveted Store C)Y rebved sock Chopd> J int geb-symbol. index Cobar Sperla) £ Sunk RAC Ymp ol) E Coyela’s etturn 04 Cac \h’% vehen 1? cage 3/2 yeh ae 3 dcsavlt + 2ehven -154 FY Void pame Coloa * jnpor J¥ int Pp=O4 PuyhCd7, Whe Cd Cimd soles Covvent -skeleC)5 Char sy rhb) = imput Gpds - goes Vin Ym bol index = “gal symbal lindas Cn BBIIS inFachonsolue s°achan (stoked Csy reba index Js if Cachon svaloe== 999) & poine ee formed’) baeotey Y iF Cachonsvolue>o xo point { shit boon tthe dd 1, achon _volug Posh Cackon values prey Y _ else it Cachon value < by C int pow-nioeeher = ~acton.value + Painth ORedue bq production’ ha" pacdochors Conder} (ot - lemgth= 7 -pop = 04 id Cpood= mumbes Jeet) - peng phstetep = fy if (porod- number = =2) lerytt — —h- tee = it Cpood nurebes = = 3) qengt> fost = y Pop Clength -40~ pop Jy skce~ eoetan searing) yo gole-state = go-te Lobe) (prod number == (fo 4y Js pond Cote Stile % dt, Jobe -shase ) posh Goto stele), § chet paints ClOewoe )7 batale, JF "yy irmain C)e chaz Input Cloo Jy pantt O paler impor Staring 5 Scant Oy. si frpot) y Srae cat Cimpod ($5 pore. Cinpeb)s aN or y SAL SAL EDUCATION lcxexciseli] Waite C pan kan troplecscnt 12) pamee Page No.: Expeament ma 2 Ht Include tt inoeliide ian ng } He jclude ¢Stdiih-b Char "pmduckant Py at “so -na!), A200" dooh"} [ime octon Celfayat Yo. 4-1 b sl 12994 (yay Seb 64, toi bay, ve city lint go. tn Peypaqery thet Juarez =r Ink bkocte fied) y ctnp = =I 5 Maid push Gnd Sede) sstoch Pttoe)] =Sdote 4 oY veid pop Cinta) Yo 4np-= ny f Int Cunrnt choke Cle xehieen Steck Chop]: 3 Lint ged Scho Tedes Celazd grebalid 5 ibeta o: /. eehu . Fe void pane Cchow * impor ) emt Jono, push(s): | fasbre Ct int shakes compen sdeyde C) Chae 1yenbo} = impot Gel: In ackon= Volues Gction [ate] [eymnbe niall Sap Symbol index = Ted symbol inne Gsymbo / 2, id Cochoniverlue == 290 printd succes hol) 2: jd (action value >0 tram} (" ae L Sole 1. 67 = Poth Cachan. value) + Opt § te d_(ochne value colt int etl sae Prop Cina. ka lop ) pene evrent cote (YY Int posin () of chor aol Croo}s faint (Ven Input staingll) Rant Cie inpurd): pao Garo t): SAL SAL EDUCATION ae C paregaciat th inagltata’ Operxu'ge Page No.: 44 imelude “atin sh 4 include oid lih b> thimclude de-tupe b> - HH dekne MAY exer LEN Jon \ int int cho x 5 irc precedence Cchow Op? s Pent pore. eup C Conch Choe Feypa “nt Hinde Int pore — tmo Céonsi- chor ¥ cher iat * index); int pom dectoalconst clan teven jah 4 indey)« | Sot mooie CE chor expaesian [max exe e. CENT 4. &y oar yon + ! Printt O Enter arithmetic lind Inde: + Jot mevtt = Pome seypretizan (ee pecs )an 43 rete) lpenintt CY Reuilt 9 % di! gent), aedon ay ¥ int evaluat Cint a ink hy Chae op )¥ Lruritch Cop) t Coe Sh aetymn Utils 5 _| Coxe Va! athe Qab s Caje Sats the | am __at bh Coyo “fh s yehon ~a/in + dedovlt + sehen Oo: + 4 | lint precedence Char ap) ¥ ssikeh Cop) & Core “Hs og Cove *"* neon ] Coe t’s NAVKAR STATIONERS, Case S's KAD Oe debolt xcuen o: Sy imbk Pome ex preartae> Cc hinge chose Tt eypy ink "indedle Vat roulh = pare tes (evpr, index) y lolile Cex pa (* index je= “H JleyyeG intexJ-2'/ HW Char op= e¢pr(tinde J5 - C tadex F414 rok deer = pore heal pay lower) 7 wewwlt = evaluate Caesolt, deem op)y $ ativan result 7g int fase lewm (corsk chaa™ €ypry iE nindex) t Int pesulh = pordtactachay Cexp oy index) while Cexps Cf indu Je= '*! 7) Tepe ltinder J ==) e Chae op = CKpr CG fede Ts, Ctimdex ) thi inh ductor = parse _ doctor (exp xy index 2, eovlt = evalua Cagolh jAecdos, ap), Ny Wlurn resolk + Y ime fame fatlag Coke ‘thas t expr, ink = index) & jot awlbao; while Cisspace Cexpe CF Pade IS Cindy t) +4 TAC digit Cevpy CF ind VU auolt = expr [index y — ‘ol; Cindey) +43 while Cisdigid Cette Ejndex J )) ¢ pew lh = rwIUlt *1oO + Cevpy Cindevy-'0/)7 Ctindeyy Hh 5 ip clse it (expr Cevedey 728 wee @ index )H+ +, peswlt= panc-eypa (exprs Indes 3, Ceindex ity 4 pehren revu t- +o a Void match Cchay eypected )& ih Gere} Linder} c= evpechd 2% mndext 5 4 P 3 elset exnox (unexpected cheractes eh a ekpa (1k int zewlt = fered) vt while Cinpod Cindexgzs ¥ limpet Cinder J== - ae char op= MmporCinder 74 mmakh Cop)4 int t = Ferm Oy - > i+ Cope ‘HE auvlt tek 4} ele tree -=t iy gehen xesvlt 4 J ier erm OS s+ = Int woulp = factorO)4 ee while Cinpot Gndey Jas inpolTindex] == 7 de Char op = infub Gndex J; wrath Cop) 5 int f= ductor GO); ih (open VE HEE G4 ee Cwvlt Jef 7 TY rehisn weselt 5 fF sii int dedow CE ret esolf= OFe while Cisspace. Cinpet Lindex 39) index te 5 J id Cis digit Cinpot Cindex 3) t while Cis agit Cimpot Cindey >) € ® yvlt = sesult + 10 HOnpot Lindel 7-'0'); index ++, 5 FT else i+ Cinget Cinder J= = Vey € mateh Cre), ey pa C24. match GN), J Nel, "4 } nm ges lt = eyet exe C’Expeced mo. 08 ween 9 24vlt 4 a)... PageNo: SAL SAL EDUCATION Cxpeaiment na 39 j ime 7 QO inlay analyzer der a 3 in as HH include Cardin sh> Clars.| di 2 tui HY indude # incl “vies by ~ Po Chae t+ imoub + Int isade |__| Void erm @anst chor * mncugre de | CRS : - jan bere be or NAVKAR STATINNERS SAL SAL EDUCATION eS txpemment no, 10+ wate j dorms nae poasimg Jeclnigue ocxee the inilerrnediote Fete 2 Tm _thoee add. Cade dexmod Jo eve 5a C lamar O4t HB include Spdtgahd. lu < Veh »hd + jeclude ¢ # dye tah It imelude Cate eh> dedine Tay Vexeg_ ty loo EF dedime IAN TRmp. VAR 160 Cho: Fimeut + jimh i: : Ho erop= Lox fount + Chore Cupar (max Fepe pen) Chag * Maw —Hnp-VO% Ot Sete chas temp - vor Cry 3 Spantt Cemp —vor Nahe) Herap- vere Court+#? 5 yeluen Lemp vary ¥ int expression 6) € Tot sey = tam 4 bolle Cinpot Cindex J = = yy input GndexJ= = Char op = input Cindex J 7 3 rmratel (of) 4 : “ wal += tesmd)4 ea 5 Chay “Herp vor = nav femp- var O)4. andrea code Clopaa-hLdg ae! “atinesolt b) Yio = temPp-var 4} Yo gehren sew it 4 J 2 int lesen 0) 2 - " int vesolt= ductor C)y_ e while Cinpet Cindexd==*e/ ingot findevg == VE Char of = inpot Cinder J 4-_- Yralch © py jnt dzidects O74 ~ - Chaz * hemp vor = Te! temp = var); enerete code Clap 22 yh S272 8/" rool, Ay provlt = femp=ver yt sebum acolty J int ductow ©). Crh wevtr= 0% while Caspace Cnpet Binder) J) & index Hh % J 9 1+ Cisdigit Gnpot Circe 9 yD e- chaa Tiempvar = new — temp vor j Pritt Cye$ 2 0, emp avery pot Cindeey ) yenvlta tempivas 4 index #47 - hie Gs digit Cimpud Bndex])) Croctt= ree “10+ (Irjot Linde Indey tH? Uy . wt Yy else if Gapotlindst == *¢'9% Troteh C'C'); resi = eC pression ()%, - Troteh C'y7)4 J che Ceaver 4} ete pers ‘ aii enevale—Code Cconst cher T opeahen, corst char Tarz |, Be Chae 4axy 2)? clas * Heeny Var= new-lemp eo ace DVESIS IO", temp var 024 1, Op@zben,aat2 Nod

You might also like