Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
53 views
104 pages
OOP Solved Manual - Watermark
Uploaded by
23-B Aditya Sunkari
AI-enhanced title
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
Download
Save
Save OOP Solved Manual_watermark (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
53 views
104 pages
OOP Solved Manual - Watermark
Uploaded by
23-B Aditya Sunkari
AI-enhanced title
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
Carousel Previous
Carousel Next
Download
Save
Save OOP Solved Manual_watermark (1) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 104
Search
Fullscreen
VIL Resources required : Name a No _| Resource eo 2 miniemyaop 4o03e™4 | asperbstch | Foran cove ae | Catia ny 2. [Operating Windows LINUX 5 ams fran VIO » cr semandeiheni8 a X Resources used So] Reco Ra pata T[Gampwersisen Tip ago a2 «i processor lee ‘specifications i aera FTanbo Ott 3 | Any other resource wed www:msbtesolution-xyz Google chrome. XII Practical Related Questions ‘Note: Below given are few sample questions for reference. Teacher must design ‘more such questions so as to ensure the achievement of identified CO. (Note: Use Point VIII to X and XII to XV forall relevant programming exercise use ‘blank pages provided or nach mare pages ifncede) 1. Constant variables can be created in C+ by asing : const b. define ak bd. None ofthese 2. State output ofthe following code: oo Satput ~ 20 rant programining exercise use valuate the following expressions!) 1 bo aas 2a 2a 2. Write a C++ program to demonstrate the use of operator pre sedence. 3. Complete the given table: vatiable circle 7 ‘Warns sate Boar of Technical EdueanonTaye when ea” \d Supriya Yuvraj bee igp IE! JUnit) Fe eprequle st Conveehy Varig value into bu AH HOPPE N at iream.h> ‘ xe Vo | 7 ov" ok Include ¢ conten»... ‘8 se : SS intab.cd71 2,5; Void mi oO 7 e 4 . @ ern “2 tleat..ar bs C,Bisee CONS hi. “p cim>aobrerrd; Chaser, : Cour ceMentee, values F0@ 4b) #0 1" 4 (1033-42262? Ch CORSE = Be IE ORC Eman co KL 4 s0er Cons 1 G+); whe 2 C-B- satk Const) )) (280)t cour celvalue of ar =" ce m1) "in value of 22 = << 32} i rl=(arb*bre; i ij WWWms r2=cra*b; 13 cout<<"result is="<
for @10N9 pesitfon eT sould Mot Hrete in rhe proatal [ee would Tove TE sees bneak sen ‘srowld 9! Same cond Hop to Sth ene ten} ng ¢ que tee Gil ge. te. tn, wore beet, case 320m aria fuera cnohse “Tee ppadbyangh'_ Staemea—— » [ptace cr gore Sterne ong factorial (10mg 9) Tien as tenaty ef By=e + factorial AT Te The. serection. stale con el _StaKAEM nn www.msbtesolution.xyz in proqwany Cercle here is Mo Function te mold sp Seren seruaee NS Troe utieguen’s Eis ecmeee, Me |i ceren en entine Sho Weetae Lieition en crates ee 8 Peters goes ‘cout << "You have got grade Ae™ << endiz | (# WE ene, breaks | peecentage 4reizen sie << "Tou have go grade at ce ancis | Fan go then | i ‘Mabaaahira sate Daud of Technical EastonName: Gaikwad Supriya Yuvraj. Roll no.:.10 Class: SY CSE, cout << yo 3 cin ~~ c r \d number: "; fo Sousa Eerseoon number = in >> num2; ec D coul pniee any 00.2 J 2 num? <<" | : Dare: "<< end; | = 8 for(i = num | SOE | | q sum =0; | ne = | | rs pele —nn S num =i; | SF Grey Sa) for(; num > 0; num /= 10) rE" yo aside “ec Pod t “No. is nor Palldverne it = num % 10 ee 7 ‘a — . sum = sum + digit * digit * digit; | =.=wad Supriya Yuvraj. Class: SY CSE. seeceeeeeeenccceeeeeeeees SOURCE COD Exner void main() second number: "; {rong numbers between" << numl <<" and" << 1,i<= num? i) sum = 0; num =i: for(; num > 0; num /= 10) * digit;cout i= endl ‘Weightage jE | 70% | Op Utena — 00 and 400 are: & ist of Students/Team Memt P'Gatkood “kernal. 3 E 2 Gaikwad. supelya = = = | Gbanke TMuskan, 3 4 Gua Pratnmelhx Resources used SNe, Name of Re I J Anyomerrsouceused [vig Fee | | In ween el 2. Which loops needs a semi colon afer? Der bre «while ferent, while(X<100)... when does the statement controlled by Ven x is greater than one hundred fal to one hundred (Space for Answers) neve [28S an Va Brogvam hence.| « semiazian or tne end ase, Roll no.: 10 Class: SYCSE, erate when Value Hinclude
rn 100 @3_ The « %. Sew is less th Hincludeciostream.h> is Z void main() WN > S<° int aati & fori = 100; i >=1; i++) °o = { = m i). oO printf("%d \t",i); Mm en {0009 98.97 96 95 94.93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 ZB 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 3655545352 5150 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 BR 31 30 29 28 27 26 25 24 23 22 21 20 19 18.17 16 15 1413 12 1110987654321 4) ican tn e089 | litpyrora ptxem of éarural numbers, 4 Nis Co* progr, ask the user 0 ener the muraber of find to prat the pramd ofears@Y 01) it ‘Ws at Rada Tcbat Eacaaog2) name: Gaikwad Supriya Yuvraj p ae AME OMe. gg Roll no.: 10 Class: SYCSE. oe he e3 Fhe cendit! SE x_ 18 le5s/ from i andQ4a0rb from te folloning: relevant programming exercise 100.99 98 97 9695 91 93 92 91 90 89 88 87 8685 84 63 $2 81 80 79 18 77 76 75 74 73 7271 70 69 68 67 66 65 64 63 62 6160595857 - 16 55 5453 525150 49 48 47 46 45 43 42 41.40 39 38 37 36 35 34 - }3 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 4 1110987654321 4 Op = ‘aration ae rad of ect Cla)_ void maint) 3 inti, S$ .¥, k=O; _ clyscy0)j - Pernré C" entee Numbee OF vows" )i scané (" f-d" 4 Vs oe (isl i iceyj f++ 1 K=O) i fou (CS=1 5 S
in c jp the following skills in you oO broad-based problems = SS oO CAV Relevant Course Ou Gp Develop C+ programs tole problems sing Procedure Oriented Approach. a=] cy 1 Outcome ( Tree Compile! debug / Execute simple C++ program using one dimensional www.ms stored in sequential memory location sored sequentially one after the other. index. Marks Obtained Dated signature _ in an array of n elements, the fist element has index zero of Teacher 1 i+1) ate stored in consecutive memory Prodvct Reneaisy| TAKS) One Dimensional Array Syntax: 33 lo fe] one a ais ie Baro Fal Bacar a ue : SF |) ination ene Doadof Tecra Faeaton 3 waarmee aabove Computer (9-5 preferable), RAM ‘minimum 2 GB and ‘onwards, HDD 40GB and 15000): 2228803235); Windows LINUX ter “Taibo CH Version 3 00F any 1X Precautions \ 2. Follow safety practices. X_ Resources used die eomputer sytem and peripherals with care. S.No. | Nameof Resource Specification T | Comper System swith broad specifications hp 280 G2 ,i5 Processoge fioat nua{100), sumeD-0, averages | quot << "Enter the musbers of Gatat ' wide (n> 200 11-9 <= 0) eo 1009." << uid an range of (2 number agai 1 i forts = 07 1 nF vr J< enter sumer! "4 : cout <¢ “Average 8, lowing correctly declares an array? yy size 35 ne What sning of anonymous array? Isthere any difference between int] and How to copy an aay int aoter aay? haut assigning the size ofan aay? (0. Can you declare an array wit Sofware Ferbo 4 (Space for Answers) 3 [Ray eer roar wed (Google creme XI Result (Output ofthe Program) Wee. steele one. dinectisnalaeeay. 1. State opto the following code: the. program. t2...umpl ages ifoceded) a= ven ae fv sample gueton for reference. Teacher must design 7 uch questions 50 as 10 te achie of identified CO. ‘- Value or avavage 0 iaharathe nate Baad af Tecial Econin (994 inF CT iseeence benoeen ae bol she ageat] +? vaelable i we coud mot use b claeatfon b des thesc is d pecause ink () maker mantly ‘int! isa keyword F 1 i : ary is comect de > “GNF ig as vaeiable hex as! Soetoy 14h TI's. declaea™ Sona tater OF OEY \ jake ~ © Tf. [FIs decked, Jebaily. 08. ‘allged_1©.© bu defawh ig Tusk pak them ina loop Ee can use & just ase assignment cepealee, dhe value ¢romM PHS vaeiable potas, + Use anornee aeeay Name Sq acide bliss L No. we can'+ change ageay size ay wn time = ac it tized ab the time 06 derlagasion at You on is that changed - che most populae !0P you +o assign a) Tr Ne \ i local .§grb ag. ¢ grave then. Lb tel | “ie fo values’ are Pe sat _memoty 1h, Mar. be nunced: can change size bab conditt cise » value should be less than actual size or aeeay . You may change the size using Anothee vaaable © a : You can't Keep the size of aeeay empty bur You Re ee ee can declage ageay withour size as fellow - , ink a | declaee a (Note: Use Post Vl to X and Xl to XV for al evan program ove Ie af relevant programming exercise we : i ages provided or attach more pages if needed.) cin ssa 7-47 Inpuk A. Writea C++ fir : |: Mita roan fain of oral ary of ne ie u A a tosize of aeleuy 3. Find tesmalested soon nat onan insnarey. ‘4 Wrtea C=» ropam to fnd the Missing Number, - ako La}; thats it 5. Complete the given table:ame: Gaikwad Supriya Yuvraj int getMedian(int arl{}, int ar2[], int n) t int i = 0; int j = 0; int count; int for (e6unt = 0; count <= n; count if(i—=n) t ml = m2; m2? = ar2[0]; break; elseieg=" n) { ml = m2; www.msbtesohution.xyz m2 = ar! (0); break; eeliftarifi]
_#E includ? < stdio ny # include < Conia: h> voicl Malnry z (nt G 303, 9, Clyscxe); Cour <<" Entee the No of element”) Cins>n st Cour << endl 4 <<" epee Qeeay element”) Got Ciro; fen, i+) i = cin saci), 3 z a a bubble -Soek Cains Cour <¢" smallat éfement = "ee ato)
>afiJLi) 5 ae 055-2554) ‘in>>bli]U) ; J for (i=031<=2;i++) { for (j=0;j<=2;j++) { CLiJGI= 0; values for first 3 x 3 matrix:\n";www.msbtegolution.xyzReferences / Suggestions for further Reading 1 bps://www.sanfoundry.com/multiple-choice-questions-c-mul 2 https://www-hackerearth.com/practice/data- dimensional/tutorial” 3. https:/Awww. programiz.com/cpp-programming/examples/matrix-transpose ‘ta sate Board of Technical Education 3B a |intel [3 3220 © 04 bie poi nds: member funetins: The d3l2- meng, and members and merce wing the dot”) operator yy may ccesing, 20 Nee cis of cs NE 0 BE2838 the “edgaangy XL Rete Ourpet ofthe Fram) éyrakd, paca... commie i FS Some a ga 2S Ni ‘Member Functions in Cases: The ine a member functiog, awe. CESS HUN. ts? Ne ge 5S" \eaiple.mnent.... S105. Ob ye. Spt isa : her mee elation xi Gea ice. Teacher must design ‘Guan ype fnctonNamelistof parameters] ) ror tified CO. t = framing exercise USE ‘yoy of cton : a te enbedcaraion on he Coie as eon: Span: ype cane fincosNamelstof parame i a i D E = 2... 2 ty of fincion 1% Precaution, 1 Handle comp 2. Folow sty rece PRES wihchae aumnoe C20] XML Exerese : Raempt Qt or Qzand Q3a0¢ from the followings oS a edie fea least ropamming ecm (Note: Use Pat Vil wo X an x — ace wch more pages freed) ee ‘blank pages provided or atch mors Pages : 2 Tsp book -NaMeL3°. fi 1 Wes Cr nopun daca eis Bak” Aig ta memes ESC N 2Tentee_awshoe Name p> ook game, author and pice Accept nd display data for book having maxim, = pec” ented pee i a > awmoz C20}, 2. Whe 4 C+ progam to decare a dass “suff having data members name, fs. Enree book P&E / Secs, DAHA nd nlite prs ale. Accept and display data fore | °° bate ——s cine Pacey Wim DAASotiic se: Tika aoe _ i, Gross salary-basiesHIRASDA —Everd disploy ) a 3. Complete given ule == Te € pace > 309) Propram Code Write & Justify Output t Zs 7 = Bice ¥ poak name = "
>b_sal; - j 7 hhra=(30+b_sal)100; i da=(74.5+b_sal)/100; .sal=b_salthratda; if f cout<<"\n Gross salary is-"<<._ sal; 4 |void maint) oy Enter your basic salary-25000 Output. Gross salary is-5070.5 PTT) pens, Justleication = Wenave +oxmove wenn statement in int avea 0 Gunction becaye cunction RtuIN-q value yathee than object (Space for answers) orn ilopoint comeplusplusiepp_classes_ objects. htm 1. btps://onww 2, psworw. ie Board of Tecnica Fabeaton[se No. above ‘As per batch size 2 | Operating ‘Windows (LINUX 7 [Software Turbo C= Version 30 0rany other 1X Precautions x 1. Handle computer system and peripherals with care 2. Follow safey practices Resources wed S.No] Name ot Resource Specification 1] Computer Syste THeel CR) cove CTM)IB swith roadspeciteaions | pany AGB, fe aca VTinbe Ct J] Ray ober resource wed XII * Practical Related Questions Tove Below ghee for emp ace for freon Teacher ach neon as enie heehvemen ofienaper coe 8" Maharsia wai Board of Techical Ea Pa a =. aPea eco 1nd 03 2 or b from the following: : “Attempt QI oF Q2 8 1 having data members emp i, Wate a C+ program to define a clas “Employee jane saree and eep sary. Accept and splay dats Gr employees having, greater than 25,000 12 Writea Co programm define a class "City" having data EMPETS NAME, PPA, 4 pecept and display data for 10 ities. 43. Complete the given tble ceaerean-F male: www.msbtesolution.xyz Hen) aeeneve it Employee Age ts of tecittect Empioyee Salary ¢ a “Ientee ernployee ‘calabiy! Soepo feniee etal} soe lemployee-| Entce emplpyeeid- al levee. ernpltyece name: srmfta Entice empleyce. age: IF entree employ C& poring ee Jenree deraiisot 2 lemnproyee- |. enice ernplgyee if 2 lEntce. emplpyee ame iah Entec epmbype ages 24 jee detalis of-F Enee emplagere id: Is lentee- employee ae" so lEntee ernplayce lsala ey es000 details oF Employee + smita_ [8238008 2 Jonn 1 3Be0ce 3 Atish 2 2F000 ane rete SE eee AYZ % c oS = = 3 w o = 4 at couse tener aaa S-Gor>mmerronsin =) = void pad) sutc<"inety name:"<
‘box -wideh <
aie os nt bess than in Sate ie gyn tiger a ini decne <4 s Asem and 3 em he an ‘whe ofte lowing valid iline for funtion oo? " X and XII to XV for all rel sie ater fost Breer eee 1. Wate a co progam S_ Sone manasa coe see ane” te s sn peo eae operons he aon, ian 3 el operas i son beaten, ipso a PD 2 compete gven sl 2 a D Program Code Write & estty . : Ouper z Squate of 11 enctace the tenet = oe | a poste doo sal inte of @ No ta :7
eee Fiarsha sate Board of Tecnicl Elven3, Complete the given table: Program Code 12344 1234 aee tne valye 0 conshuctoe enlyon 4 aeethe |vatueoe desnuctot wth no pa ane bi) XIN Exercise ‘Attempt QI and Q.2 from the following: (Note: Use Point VIII to X and XIII to XV forall relevant programming exercise use blank pages provided or attach more pages ifnceded!) (MA. Write a Cr+ program to define a class “Number” having data members x and y ané perform mathematical operations like addition, subtraction, muxiplication and division on two mumbers using constructor and destructor functions. 2. Write a C++ program to define a class “Product” having data members Prod_id Prod_name, Prod.price. Accept and display da for 3 products using construcor overloading. ‘Sahara snc Board of Technical Edvenion rh ii ate Bard of Techical Banton -_.. _Exercise ‘Astempt QU and Q.2 from the following: (Note: Use Point VII 0 X and XII to XV forall evant programming exercise we blank pages provided or attach more pages ifneeded.) MA. Write 3 C+ program to define a class “Number” having data members x and y za perform mathematical eperaions like addition, subtaction, multiplication aa
Nis = Gre poop So cies Saetors beng Get monte See sepia dep deipason, Dee 2 cles “Salary” fro e ing data members base, hra, da, gross_sal. As = moons ha sal. Accept and display data Se Bard of Tal ion ql ‘Mikasa vate Board of Tec Edeation HrdeclazaHcn ty deeived * cons ne & www.msbtesolutio Name-Gaikwad Supriya Yuvraj Roll no.~ 10 *Caleulate gross salary of given basic salary using inheritance’! class employee t protected char name[10],designation( 10}; int e_no; public: void enter() ‘ courc<"n Enter ur name" cin>>name; coutse"'n Enter ur emp no"; cour<<"n Enter ur designation-"; cin>>designation; class salary:public employeepoet fon et fos Ob poi: void ealoel) t councCrn Erer wb a: i> sl eo-(30-b_s)100, aroha 10, sak sth: | void display() t cout nName-"<
> Name >> voll. No,
> M1 >2. M2993;Pippi programtopia.neveplusplus/docs'single- inheritance) 1 bedww.geeksforgecks.org/inberitance-n-c! eh acne comme/oetascee moe ution and aneen | Pollo: 8 eS Ses Toral = 272. = | pearww: geeksforgecks.orploutpu-o-e-programse 1 [sperid petarorgcetsorgindex php Pescentaye = 90-6 |S acme calk 21: wily ode base_classname ee fos chs Fone fincas | =a eal \ vs, ode derived clasnane, Xan cs syctieaton ‘Quancty Cope preferable), RAM inimum 2 GBand eer oaId | er ttc = size | Opeaing | Wado OX system 7 [Savane Tate > Veron orang cer 1 Prec nas 3 fate compte nt pple, Follow sale pate, > Mies ie Rat Taal ao 9 -coadthewd_Ineeiance...gen ete nt SHEN Is Kno fei vel 2 aces ote ical tet Ss pein ica é ico — a rlevant programming eerie We - jcrchicl 5 hee Je pile! I ew 1 ah on — sip es diweags wot sO encapsulation D)None phere spt 0469) = N fe ~PPS Cc So = i So Gass prema 2 Date members 4 ae ween pops nino ining Malo ease & (Class: car : patamembersar-9pe - Gassiband pasmembers ‘brand_name, speed f Makers ea Boa of Teil Fs de 3) Mieaiassc Daria Taina Eonchar car_type[20}; public: void get) inp ear types ) void éisplay() ( / Y cout<
cin>>brand_name>speed | etre name20) long price: public: id put() cout<<"enter the model name and price"; cin>>model_name>>price, oid data) wut<
>specd ' ssbstowt) \ scrand_ names" \"<
>model_name>>price: 1 vwidaat)cco Enter the car ype: sedan eI sim name and speed audi 300 ime and price Volvo SRE Foye ial ratios product related (15 Marks) pat cralisbad “hathma. Guros.. o ee 100% Dated signature TC) Marks Obtained ‘of Teacher = Product | Totaks) ie | 1 qe La | — | | r }_ tigilés PH sic t8) atatccends se Clasea tiple inheritance? 3) Dynami olymorphism 2) Both Dynamic binding & Polymorphism 6) None ofthe mentioned (Space for answers) ‘Gee mulfiple base. Classe + only. one decved dass.3 A Potpmetaen Seve epee" (Space for amvmerey Clase £ that class detived fom another an coo A= toe 8-20 c 36 p-40 o) Ben dy1 from the following: a Exe on net (oa: Ue eke 12d IV fe eV Program oP 1B exer ost sifreede.) poset 2 Wie & C+ ropa fo Ios Go pn or treet of las hechy as below \ [coer] anete Cini, irs) Peli 42d peel = E24 (P49) qongle : Public Ata ipublic peeimete Buby ie: rrtcongle C area Cinta guinb, inve pina); peemerce Cinciinid)i . pone”eepubic bats k class allrounder bic bo ' wn ame "<3 fame; coun Allround’ seore:"<< SOE, sbtesolution.xyz yame and score: jeesmame adn, f wicks ken o ee 9 aude’ name and Sor: weapon ame and runs made:www.msbtesolution.xyz enon = In this Program , "Base! yan ambigous base 0¢ mattiple so. FF Produces his progam Sor vierwa] base classI {Itt FRRRSRARAR? eeny the following skills 1 you Deon Cos pero solve broad-based problems ising pointe to obs —_ | Wp 220 G2 ig precessos, Tbe le questions for reference. Teacher must oes rhievement of identified CO.Name: Gaikwad Supriya Yuvraj dntialieing data meme USINS object with value 12122,)) lass:S¥ CSE: Roll no.:10. /*A program 0 display book's information by using pointer to object"? to object) class book ( int price; , dota penaaca oid) char b_namef10},a_nam cconnttod 1s "eDnCetE CMEC j ; public: void enter() eae (12,27 Ug manbers using the obSece ( cout<<"\n Bi 1s ame and book's names"; aces ‘ ‘cout<<"\n Enter book's prices"; 16: 10:00 -aing data members ust 35, 10, oH cin>>prices } void display) ( ‘cout<<"in Author's name"<
rm iB — ee + acct Eater Namerr E Sooo He Sacer Enter Dexoniaor 5 cowtcen Enter Int Fraction Value *;coutc<"\o — : Na accept) ning Ving C+ 22016) one oneoe PoE a void setLength( double len ) { length = len: ' void serBreadth( double bre ) | breadth = bre: ) void setHeight( double hei ) { coutcer Eater 2nd Fraction Value *;coutccn — height = hei Na"; Daccept(); t 4 = = ae ‘cours ‘Numbers na a nace Sa abcie oe Errors. | [> Type name | exepieg 3-tnesa— | | Fuchu ee | declazeayion. | Haase Boar of Tena EdicionSEPP wf om | \ \ | MN | | S| 8 “| Bs ais] 8 aegis 2 R Z ve ok le) lol te ele) &] | 8) Ee IS ee rae] (NRE RE] fal lel BRE EL | rey Is i | 9 g| Bh] ya | | g|-| eI SILT H le! F | & HTH ie HAL HTL AS | | ee i Ha HELL“ . £ ee"1N Operatok ¢ oueeog; "3 : of el Opetatee %bi; 4 f pp. sped cout ce" IN opeearee | Ovetl od p37 bl - OPeRatoa /b2; by Show C)y No qercno, > 4 ing” = Griass carnpaee St chae Str [20]; ink stely Public 7 veld gered it TT ete ree ter Set-Cio,<}; be S82 BS Show c)5 7 Bsshow (3; ~——— 2 Cub cert opeaavee + ove Optaroa tbr; ore a ba 1p OPeea, C% - Queded ing 5b Compate gempy > ~ BI. operate = = Pate fempy = ba showory, O24 i emp. stil = sivem p cnr 1 c2 sh)i DES = Suse 22bd wo. ore ) A [ys'eae Ad) Faas} | a popossdd zatdwe 230dwod U 1S BHD 126 7€) mous 19 - Q G-% oFegado «I 2nd # garweado Ul 7 Us ** J Getozado ul 7 2oFogado ~ Bear 'P8Ran0 7] q ‘Bulpop, o> 4 ba‘add operator “(add al.add 2) add temp a3=operator +(a2.a show) getch(): ouput . ow” 250 oy bas Serine Tone Pera one ey ae eee pe eeasolli www.ms ;“pm cops nem rg x Resources used 1 carry meth date varblel datatype? vans) an HO 8x8 a Nek on avers SMALE CEE pragiam tng. function with no arguments cE eatin er eames void display oat Se ig POMS ed display it nwt) one ang 3 VIL Resources required peal neces ooo ion Quantity | Remarks Na ree Species 1 [Hardware | Compater(-%5 oer preferable), RAM Sym rrinimam 2 GBand Gaarde HDD AOCEAD | gs eetaich | poral ae size | Experiments [Operating | Windows LINUX | ster Fevare | Turbo C= Version 30 0F -c _— 3.Wh Programmingis sy ures of Cray PORES by Function IX Precautio 1 Handle computer system and peripherals with cre. 2 Follow safery practes can hardly run another oe of mere funtion inside it ith the same name but diferent number parameters Tahara mar Board of Teciowal Fae — aXMM Exe tempt Q1 or Q2 or Q3 and QA or b from the following: I relevant programming exercise use (Note: Use Point blank pages provi 1. Write a C+ Program to interchange the values of two int float and char ‘using function overloading 2. Write a C+ Program that find the distance berwcen two points in 2D and 3D space using funtion overloading. 3.Write C++ program to find the area of various geometrical shapes by function overloading ‘Makarashirs save Board of Technical Eavcaion i tion. xyz solu www.msbtesol 4. Complete the given table: Write & justify Ourput Outpub A bsolet te, Value ot ooo Absolute™ Value ot sores. ‘Matarashia sate Board of Technical EluationEe) | EB || || ayy y\) | yy i) WIV}op aq ‘cour<<"in Values before float swappi coutectnest
xi #ineludeststreamh> void main() " { xu reference. Teacher must design of identified CO. gets(fnamel); ce ene cout<<"\nEnter second file name:"; wvew.msbtesolution.xyz gets(fname2); gets(fname3); ifiles| open(fhamel); of Tec cae‘Output: Enter first file name:myfilel ILURE} Enter second file name:myfile2 EXIT_FAILURE); ich will store the contents of above (WO files:myfile3 Enter name of file } while(files1.c0f)=0) ‘The two files are merged! a ifiles1>>ch; ifler
>ehs Cx i i 9 ch =ch4loo; _i0afiveR_. __ : $a es plecth; : _.4 lyy ry BULLI iu (4a) |) BELLI | ae Byer F.) Wey124 aN epanae é ‘Sostesom “hy - lanl se YEAS fs: close OF i ——___F Pt - close cag — ES open (Frame sy er aeps ip include
te t 2 1 gerch 0); Ppt spchy | 15 Fps2echy Coutcc"In File"<< Frame ce ON MYpted Sycesouy Cout ccl'n patssany Fey fo ext fh"? a FPS. clese ¢1; 3 a Fpt-clese(o; ud 7 a@SumitBiranje
You might also like
Object Oriented Programming C++ Solved Manual
PDF
No ratings yet
Object Oriented Programming C++ Solved Manual
161 pages
C++ Solved Problems
PDF
100% (1)
C++ Solved Problems
119 pages
Assignment 01 - CS-101
PDF
No ratings yet
Assignment 01 - CS-101
4 pages
Final Exam Solution - Computing Fundamentals and Programming
PDF
100% (1)
Final Exam Solution - Computing Fundamentals and Programming
13 pages
It's A Request As Your Teacher and Elder Brother To All of You Guys To Please Please Do It by Yourself
PDF
0% (1)
It's A Request As Your Teacher and Elder Brother To All of You Guys To Please Please Do It by Yourself
8 pages
Programming Fundamentals Whole
PDF
No ratings yet
Programming Fundamentals Whole
15 pages
Rahul 24PCS5135
PDF
No ratings yet
Rahul 24PCS5135
26 pages
cs11 1
PDF
No ratings yet
cs11 1
6 pages
Class Xi Computer Science Paper For Half Yearly Exam 2010
PDF
60% (5)
Class Xi Computer Science Paper For Half Yearly Exam 2010
8 pages
FA22-BSE-046 All Lab Tasks
PDF
No ratings yet
FA22-BSE-046 All Lab Tasks
52 pages
FA22-BSE-046.. All Lab Tasks Final
PDF
No ratings yet
FA22-BSE-046.. All Lab Tasks Final
52 pages
13908revision For First Semester Exam (Xi)
PDF
No ratings yet
13908revision For First Semester Exam (Xi)
10 pages
2024 - Guidelines of Programming Using C++ For CS (H), BSC (P), BA (P) and GE
PDF
No ratings yet
2024 - Guidelines of Programming Using C++ For CS (H), BSC (P), BA (P) and GE
2 pages
13908revision For First Semester Exam (Xi)
PDF
No ratings yet
13908revision For First Semester Exam (Xi)
10 pages
L1 Intro en
PDF
No ratings yet
L1 Intro en
56 pages
CPP QN 2019
PDF
No ratings yet
CPP QN 2019
16 pages
1164111406see QP Xi Cs 2018 Set12
PDF
No ratings yet
1164111406see QP Xi Cs 2018 Set12
6 pages
IT1 2017 Structured Programming
PDF
No ratings yet
IT1 2017 Structured Programming
4 pages
Lab1 PDF
PDF
No ratings yet
Lab1 PDF
6 pages
CP Btech 08 Mid Sem 19 09 08
PDF
No ratings yet
CP Btech 08 Mid Sem 19 09 08
2 pages
Spring Quiz 1
PDF
No ratings yet
Spring Quiz 1
8 pages
Sessional I Exam Paper PF Fall 2022 - Solution
PDF
No ratings yet
Sessional I Exam Paper PF Fall 2022 - Solution
10 pages
Practical File
PDF
No ratings yet
Practical File
46 pages
PF FALL2023 Assignment3
PDF
No ratings yet
PF FALL2023 Assignment3
8 pages
C++ Practise Questions2
PDF
No ratings yet
C++ Practise Questions2
9 pages
Programming For Problem Solving: Experiment - 4
PDF
No ratings yet
Programming For Problem Solving: Experiment - 4
6 pages
Revision Problems
PDF
No ratings yet
Revision Problems
21 pages
Assignment 2
PDF
No ratings yet
Assignment 2
10 pages
Computer Programming Lab Manual
PDF
No ratings yet
Computer Programming Lab Manual
42 pages
Midterm Exam - Solution
PDF
No ratings yet
Midterm Exam - Solution
6 pages
Midterm Exam - Solution
PDF
No ratings yet
Midterm Exam - Solution
6 pages
Assignment
PDF
No ratings yet
Assignment
5 pages
Oop Manual
PDF
No ratings yet
Oop Manual
64 pages
Assignment NO.2 - PF - SPR2020
PDF
No ratings yet
Assignment NO.2 - PF - SPR2020
3 pages
PPL 50 Programs
PDF
No ratings yet
PPL 50 Programs
76 pages
Final Exam Practice
PDF
No ratings yet
Final Exam Practice
8 pages
Time: 3hours Maximum Marks: 70: Sample Paper - V Subject - Computer Science
PDF
No ratings yet
Time: 3hours Maximum Marks: 70: Sample Paper - V Subject - Computer Science
5 pages
PFund Assignment 1
PDF
No ratings yet
PFund Assignment 1
16 pages
Assignment 02
PDF
No ratings yet
Assignment 02
6 pages
C++ Assig. Section R
PDF
No ratings yet
C++ Assig. Section R
21 pages
Computer Science: 2024 III 09 0930 Seat No. Time: 3 Hours Subject Code H4 7 0 5
PDF
No ratings yet
Computer Science: 2024 III 09 0930 Seat No. Time: 3 Hours Subject Code H4 7 0 5
15 pages
Lab Data
PDF
No ratings yet
Lab Data
7 pages
PFund Assignment 1
PDF
No ratings yet
PFund Assignment 1
17 pages
Assignment
PDF
No ratings yet
Assignment
7 pages
Ict Nuces Papper
PDF
No ratings yet
Ict Nuces Papper
20 pages
CS 100 Spring 2018 Midterm V3
PDF
No ratings yet
CS 100 Spring 2018 Midterm V3
7 pages
Model Question Paper Class-XI Computer Science M.M.:70 Time:3 Hrs
PDF
No ratings yet
Model Question Paper Class-XI Computer Science M.M.:70 Time:3 Hrs
19 pages
Mid+ CS100F17V1 +solution
PDF
No ratings yet
Mid+ CS100F17V1 +solution
12 pages
CSCE - 1001 - RevisionSheet (2) 2
PDF
No ratings yet
CSCE - 1001 - RevisionSheet (2) 2
50 pages
Mid+ CS100F17V1
PDF
No ratings yet
Mid+ CS100F17V1
13 pages
Assignment Operators and Expressionswith Answers
PDF
No ratings yet
Assignment Operators and Expressionswith Answers
8 pages
Mid+ CS100F17V1
PDF
No ratings yet
Mid+ CS100F17V1
13 pages
C++ 07 Batch by 09CE37
PDF
No ratings yet
C++ 07 Batch by 09CE37
9 pages
Lab 01
PDF
No ratings yet
Lab 01
5 pages