PRACTICAL EXAM QUESTIONS
Read More
Showing posts with label Practical Exam cpp. Show all posts
Showing posts with label Practical Exam cpp. Show all posts
Create a class MAT of size m x n. Define addition matrix operations for MAT type objects using operator overloading.
/* Create a class MAT of size m x n. Define addition matrix operations for MAT type objects using operator overloading. */ #inc...
Read More
Write a function using reference variables` as arguments to swap the values of a pair of integers.
/* Write a function using reference variables` as arguments to swap the values of a pair of integers. */ #include<iostream...
Read More
Write a program to compute the area of a triangle and a circle by overloading the area( ) function.
/* Write a program to compute the area of a triangle and a circle by overloading the area( ) function. */ #include<iostream...
Read More
Create two classes DM and DB which store the value of distances. DM stores distances in metres and centimetres and DB in feet and inches. Write a program that can read values for the class objects and add one object of DM with another object of DB.
/* Create two classes DM and DB which store the value of distances. DM stores distances in metres and centimetres and DB in feet ...
Read More
Write a program which define a class “Item” having data members as code and price. Accept data for five object and display data (Using array of object). Also display the total price of all items by passing array of object as parameter to function
/* Write a program which define a class “Item” having data members as code and price. Accept data for five object and display data (U...
Read More
Write a program to read string from a file with content given below and store username, date and time as data members of another class.
/* Write a program to read string from a file with content given below and store username, date and time as data members of anoth...
Read More
Create a class FLOAT that contains one float data member. Overload all the four arithmetic operators so that they operate on the objects of FLOAT.
/* Create a class FLOAT that contains one float data member. Overload all the four arithmetic operators so that they operate on t...
Read More
Subscribe to:
Posts (Atom)