OOP C++ Labs
Q1 : C++ Program to Convert the temperature from Celsius to Fahrenheit.
Q2 : C++ program that reads three sides of triangle find area of triangle.
Q3 : C++ program to compute simple interest and compound interest.
Q4 : C++ program to input three integers and print the largest number.
Q5 : C++ program to find the area and perimeter of circle
Q6 : C++ Program to Check Whether the Given number is palindrome or not.
Q7 : Write a C++ program to take name, address as character array, age as int salary as float and contains inline functions to set the values and display it.
Q8 : Write a C++ program calculate factorial values using friend function.
Q9 : Write a C++ program read two integer number perform all arithmetic operations using OOPs concept.
Q10 : Write a C++ Program to display Names, Roll No., and grades of 3 students who have appeared in the examination. Declare the class of name, Roll No. and grade. Create an array of class objects. Read and display the contents of the array.
Q11 : Create a class TIME with members hours, minutes, seconds. Take input, add two time objects passing objects to function and display result.
Q12 : Write a C++ Program to find a simple interest using constructor.
Get Trace Is Empty’s stories in your inbox
Join Medium for free to get updates from this writer.
Q13 : Write a C++Program to demonstrate copy contractors.
Q 14 : Write a C++ program to demonstrate single level inheritance.
Q 15 : Write a C++ program to demonstrate multiple inheritance.
Q 16 : Design three classes STUDENT, EXAM and RESULT. The STUDENT class has data members such as rollno, name. create a class EXAM by inheriting the STUDENT class. The EXAM class adds data members representing the marks scored in six subjects. Derive the RESULT from the EXAM class and has its own data members such as totalmarks. Write a program to model this relationship.
Q 17 : Using the concept of function overloading Write function for calculating the area of triangle, circle and rectangle.
Q 18 : Write a program to overload unary increment (++) operator.
Q 19 : Write a program to overload binary + operator.
Q 20 : Write a C++ program read two numbers (any type) swap these number using function template.
Q 21 : Write a Program to Access Members of a STUDENT Class Using Pointer to Object Members.
Q22 : Write a program containing a possible exception. Use a try block to throw it and a catch block to handle it properly.
Q 23 : Write a program to read a set of lines from the keyboard and to store it on a specified file.
Q24 : Write a program to read a text file and display its contents on the screen.
Q 25 : Write a program to read the class object of student_info such as name, age, sex, height and weight from the keyboard and to store them on a specified file using read () and write () functions. Again the same file is opened for reading and displaying the contents of the file on the screen.
Thanks for reading this blog. I hope you liked it.




