TRIBHUWAN UNIVERSITY
Institute Of Science and Technology
Bhairahawa Multiple Campus
Siddharthanagar, Rupandehi
LAB REPORT
DEPARTMENT OF COMPUTER SCEINCE AND INFORMATION TECHNOLOGY
Course Title: OOP
Course code: CSC166
SUBMITTED BY: SUBMITTED TO:
Name: Shishir Neupane Manjesh
Pathak
ID: 8151070 Signature:
……….
INDEX
S.N. TITLE DATE SIGNATURE
1. Program using cout and cin to find perimeter of
rectangle.
2. Program: cin with string using getline function.
3. Program to get fractional results from division of
two integers.
4. Program to allocate and destroy memory
dynamically.
5. Program using namespace to count characters in a
string.
6. Program to calculate reverse of number using do
while.
7. Program to add and subtract two numbers using
macros.
8. Program to find smaller number using return by
pointer.
9. WAP to demonstrate different scope and storage
class.
10. Program using structure to add rupees and paisa.
11. WAP to calculate BMI using member function of a
class.
12. Program using common friend function to swap
private data of class.
13. Program using array of objects to show laptop
details.
14. WAP to calculate amount with interest using
constructor with default arguments.
15. Program showing destructor calling.
16. Program to overload increment operator using
friend function.
17. Program converting meters and centimeters into
feet and inches using constructor with object of
another class.
18. Program showing multilevel inheritance using
protected access specifier.
19. Program to add two numbers of any type using
class template.