BCA 2 C++ TERM WORK
1.Write a C++ program to Check if the given number is Even or Odd .
2.Write a C++ program to find Sum of Two Numbers .
3. Write a C++ program to Find the Largest Number Among three Numbers .
4. Write a C++ program to check if a Number is Palindrome.
5. Write a C++ program to Print Half Pyramid .
6.Write a C++ program to Convert Uppercase Letters to Lowercase and vice versa.
7. Write a C++ program to demonstrate All Operators Using Switch Case
8. Write a C++ program to check if the given number is prime or not.
9.Write a C++ program to Find Leap Year (Using if-else ladder and nested if) .
10. Write a C++ program to convert decimal numbers into binary numbers.
11. Write a C++ program to define a function for finding the greatest of two no’s.
12. Write a program to perform arithmetic operations using inline function and
classes.
13. Write a C++ program to swap two numbers using call by value and call by
reference.
14. Write a C++ program to show the concept of function overloading.
15.Write a C++ program to add the elements of 3*3 matrix using 2-d array.
16. Write a C++ program to show the concept of public, private and protected
access specifier.
17.Write a C++ program to demonstrate the use of default, parameterized and copy
constructor.
18. Write a C++ program to demonstrate destructor.
19. Write a C++ program to show the concept of static data member and static
member functions.
20. Write a C++ program to demonstrate the friend function.
21. Write a program in C++ for multiple inheritance using book as derived class
having different base classes Journals, Magazines, Newspaper.
22. Create a class circle with data member radius; provide member function to
calculate area. Derive a class sphere from class circle; provide member function to
calculate volume. Derive class cylinder from class sphere with additional data
member for height and member function to calculate volume.
23.Write a program in C++ for overloading of unary operator.
24. Write a program in C++ for overloading of binary operator.
25.Create a base class shape having two data members with two-member function
getdata ()(pure virtual function) and printarea() (not pure virtual function).
Derive classes triangle and rectangle from class shape and redefine member
function printarea() in both classes triangle and rectangle and test the functioning
of classes using pointer to base class objects and normal objects.
26.Write a program to solve Diamond problem(Hybrid inheritance and virtual base
class).
27.WAP to generate Fibonacci series use the concept of function overriding.
28.Write a program of a class Template with multiple parameters.
29. Write a program to enter string through file handling and read it through EOF
method.
30. Write a program to show the concept of Exception Handling.