7 views

Uploaded by haine12345

jbjkbkjbkbkbkbkjbucygcytfx hvuhv

- Java Reflection
- bpj lesson 15
- Part04-TwoPhase
- Basic c++ Interview Questions
- OOP in C++
- Working With Constructors
- B.a. or B.sc Computer Applications Part-III(Sem v&VI)
- chap2
- Trivedi, Bhushan-Programming with ANSI C++-Oxford University Press _ NASW Press (2013)
- Assignment5 t MissingQ6
- C++ Classes Tutorials
- Questions Collected From Web - Amazon
- General C++
- C++ for derivative pricing.pdf
- Creative Media and Game Technologies - How to Prepare for the Interview
- Basics of Java
- Previous Year Papers of C++ for ignou students BCS -031(BCA)(IGNOU Notes of c++)(Important Qestions of c++ IGNOU BCS-031)
- Jan Gray Hood
- SCJP Potential Trips n Traps
- Collections Assignments

You are on page 1of 3

Assigned by: Dr. Samarjit Das

includes the following data members and member functions-

Data members: EnrNo, StdName, courseName, semester, session, marks (in

three subjects), totalMarks, rank.

Member functions: void getData() // which takes input from user

int total() // it calculates the total marks

int passFail() /*will return 1 if the student is passed

else it returns 0. A student is declared passed if he/she obtains more than or

equal to 30% in each subject or more than and equal to 50% in average. */

float avg() // returns average value

int findRank() /* rank is given to only those students

who have been declared passed. This function returns the rank of a student. */

void showData() /* displays the whole information of a

student. */

2. A class named Complex has the following data members and member

functions.

Data members: real, imaginary.

Member functions: Complex() /* which initialize the data members with value

0 */

Complex(int, int) /* a parameterized constructor which

assigns the data members with new values */

addDistance() /* takes two objects (of type Complex) as

formal parameters and returns an object of type complex

which carries the sum of the corresponding data members

of the two objects. */

showDistance() /* displays a complex number, say, 7+i5,

where 7 is the real part and 5 is the imaginary part. */

Implement the above using C++ as the programming language.

Page 1 of 3

3. Write a program in C++ to define a class named matrix which includes

the member functions-

getMatrix() // takes the inputs of a square matrix.

Determinant() // finds the determinant

Minor() /* finds the minor of the elements of the

determinant. */

CoFactor() /* finds the cofactor of the elements of the

determinant */

Transpose() // calculates the transpose of the matrix.

Adj() // calculates the adjoint of the matrix.

Inverse() // calculates the inverse of the matrix.

constructor with default values.

overloading. (Include a default constructor, a parameterized constructor and a

copy constructor in the same class).

inheritance.

inheritance.

inheritances.

9. Write a program in C++ which illustrates the concept of hierarchical

inheritance.

10. Write a program in C++ which illustrates the concept of data ambiguity in

multipath inheritance. Also, provide the solution to it.

Page 2 of 3

11. Suppose O1 is an object of a class named negate which includes data

members- m and cm. The statement O1; negates the value of the data

members m and cm of object O1.

Write a C++ program to implement the above.

O3= O1 + O2; where O1, O2 and O3 are the objects of a class

named distance which includes data members- feet and inches.

13. str, str1 and str2 are three objects of a class named string.

The statement-

str = str1+ str2; concatenates two strings of objects str1, str2

and returns the resultant string which is assigned to str.

Write a C++ program to implement the above problem..

Page 3 of 3

- Java ReflectionUploaded byapi-3745283
- bpj lesson 15Uploaded byapi-307094747
- Part04-TwoPhaseUploaded bySymbian
- Basic c++ Interview QuestionsUploaded bystymhr
- OOP in C++Uploaded byfaridprogrammer
- Working With ConstructorsUploaded bylancelot630
- B.a. or B.sc Computer Applications Part-III(Sem v&VI)Uploaded byDepender Kumar
- chap2Uploaded bySumanth Raj
- Trivedi, Bhushan-Programming with ANSI C++-Oxford University Press _ NASW Press (2013)Uploaded byChandrashekhar Goswami
- Assignment5 t MissingQ6Uploaded byJames Henry Dannatt
- C++ Classes TutorialsUploaded bymanish6164768
- Questions Collected From Web - AmazonUploaded byNishtha Patel
- General C++Uploaded byRaghavendra Rajendra Basvan
- C++ for derivative pricing.pdfUploaded bymarjo95
- Creative Media and Game Technologies - How to Prepare for the InterviewUploaded byDamian Dragos
- Basics of JavaUploaded bytharani
- Previous Year Papers of C++ for ignou students BCS -031(BCA)(IGNOU Notes of c++)(Important Qestions of c++ IGNOU BCS-031)Uploaded byviii
- Jan Gray HoodUploaded byNobin Mathew
- SCJP Potential Trips n TrapsUploaded bytan1337
- Collections AssignmentsUploaded bylizastar
- jpod referenceUploaded byobonilla66
- CSCI213 Spring2013 Templates Airport.java (1)Uploaded byami_haroon
- New Microsoft Office Word DocumentUploaded bysheikabid
- Basic Elements of C++.pdfUploaded byemmrab824
- 12 Computer Science CBSE Exam Papers 2016 Delhi Set 4 AnswerUploaded byJAGANNATH THAWAIT
- comp322_04Uploaded byPranshu Jaiswal
- Java Second OopUploaded bybilal
- OopsUploaded byarivumca
- ch20Uploaded bySumeet Thakur
- Object Oriented Programming and Data Structures - Lecture Notes, Study Materials and Important questions answersUploaded byBrainKart Com

- CottonUniversity HS Admission Notification 2017Uploaded byhaine12345
- htmltutorialUploaded bykaruthapandi
- WeShow.timing.txtUploaded byhaine12345
- Computer Science_ First YearUploaded byhaine12345
- newEducationPolicy.pdfUploaded byhaine12345
- Bca Third Semester 2017 Time TableUploaded byhaine12345
- Cartesian Products and RelationsUploaded byVasu Devan
- 12-pdaUploaded byhaine12345
- Closure Properties of Regular Languages SlidesUploaded byhaine12345
- WeShow.timingUploaded byhaine12345
- Table of Contents PDP.pdfUploaded byhaine12345
- BCA NEW SYLL1.pdfUploaded byhaine12345
- jakeusUploaded byhaine12345
- Internshala Resume GuideUploaded bynklive11
- Entity Relationship DiagramUploaded byankit geete
- jakeusUploaded byhaine12345
- jakeusUploaded byhaine12345
- jakeusUploaded byhaine12345
- Bca General AllUploaded byhaine12345
- jakeusUploaded byhaine12345
- 07PassingPointers.pdfUploaded byhaine12345
- jakeusUploaded byhaine12345
- 3 Control MemoryUploaded byhaine12345
- ann-1.pdfUploaded byhaine12345
- jakeusUploaded byhaine12345
- jakeusUploaded byhaine12345
- jakeus.docxUploaded byhaine12345
- jakeusUploaded byhaine12345
- asfsfUploaded byhaine12345

- Tutorial 7Uploaded byteju1996cool
- 13bernUploaded byPANKOPANK
- Chapter 12 Testing for Autocorrelation (EC220).PptUploaded byHarsha Dutta
- Accurate Independent Domination in GraphsUploaded byIoan Degau
- NURBSUploaded bySreehari Viswanathan
- MRlibUploaded byVishnu Raghavan
- Butterworth ApproximationUploaded bySamuel Kamau
- Aerial Robotics Lecture 3B_3 Motion Planning for QuadrotorsUploaded byIain McCulloch
- Non-Linear Control Assignment 1Uploaded byArsalan Enu
- Complex NumbersUploaded byMatthew Mamangun
- Jorma Louko, Robert B. Mann and Donald Marolf- Geons with spin and chargeUploaded byDex30KM
- 12_12. Fourier Series Aided Finite Element Method (FSAFEM)Uploaded bysaxlamag
- FemUploaded byPritesh Kumar
- Smo 2004Uploaded byNasdap
- David F. Batten, Cristoforo S. Bertuglia, Dino Martellato, Sylvie Occelli Auth., David F. Batten, Cristoforo S. Bertuglia, Dino Martellato, Sylvie Occelli Eds. Learning, Innovation and Urban EvolutionUploaded byJuan Carlos Lobato Valdespino
- S-55_3230_8_2._luennon_lisamateriaaliUploaded byahsoopk
- Book Review Averaging Methods Nonlinear Dynamical SystemsUploaded byDerrick Powers
- System Dynamics Syllabus MateriaUploaded byChristian Jg
- Stochastic Models Estimation and ControlUploaded byShahryar Bagheri
- Preparing for the ACTUploaded byThomas Stilwell
- g8m4 sg key system of equations l21-27Uploaded byapi-276774049
- When is Nearest Neighbor MeaningfulUploaded bytobytripp
- ME 257Uploaded byAjith Moses
- Summerprojectreport( Sriram.G IITKanpur)Uploaded byhyld3n
- Parallelogram TI84Uploaded byFerlie Anne Sacriz Aguilar
- Business Mathematics V2Uploaded bysolvedcare
- Cheat SheetUploaded byCmpt Cmpt
- Basic Operations and SetsUploaded bylaroia
- Pre-Algebra Ch.11 Quiz 1Uploaded byKaitlyn
- ch03Uploaded byCan Çamlık