Tilak Maharashtra Vidyapeeth, Pune
Bachelor of Computer Applications (BCA)
Subject: C++ Practical
Assignment
1. Write a C++ program to show ‘*’ and ‘+’ operator overloading.
2. Write a C++ program to illustrate try-catch with the division by zero exception.
3. Write a C++ program to do multiplication, addition of Matrix.
4. Write a program to find all prime numbers between 1 to 100.
5. Write a C++ program to compare strings (length wise) using ‘>’, ‘<’, ‘==” operator.
7. Write a C++ program to show a main function can be friend function of a class.
8.write a program to inherits class ‘ Circle’ ,’Square’ ,’Triangle’, from base class ‘Shape’.
Calculate area in each class.
9.Write a C++ program to create pascal triangle.
10.WAP that reads a textfile and copy contents of that file to new file .
11.Write a C++ program to perform operation on file data. counts lines ,count words, and no. of
character in a file
12.Write a program using inline function to calculate square of a given no.