BSC - It Oop Prac Assi2
BSC - It Oop Prac Assi2
1 Write a C++ class to find the sum of individual digits of a positive integer.
Create a class employee with name, salary, age as member, use get_data() and show()
2
functions. Display details of 3 manager employees.
3 Write a C++ class to make inline function to find odd/even.
6 Write a C++ program to make inline function to find positive/ negative number.
Write a program that makes use of default arguments in Function. Define currency class
which contains rupees and paisa as data members. Write a function named getCurrency()
7
which get the value of rupees and paisa. Write a function named calculateCurrency() which
convert rupees into paisa and display the paisa amount on a terminal.
Write a C++ program (using function overloaded) to sum 5 integer values, or 5 long values, or
8
5 double values.
Write a C++ program to calculate the area of circle, rectangle and square using function
9
overloading.
Write a C++ Program to create a class employee to print the detail of employees using
10
objects.
Create a class paper with width and height as data member. Create function outside a class
11
that finds out area and perimeter of that paper Pass object as argument.
12 Write a static function setcount() that increments the counter every time the function is called.
Note : All the Programs should be implement using Class and Object.