0% found this document useful (0 votes)
907 views1 page

C++ Practical 2nd Sem BCA Assignments

This document contains a C++ programming assignment for a Bachelor of Computer Applications course. The assignment consists of 12 programming problems focusing on topics like operator overloading, exception handling, matrix operations, inheritance, file input/output, and inline functions. Students are asked to write C++ programs that demonstrate try-catch blocks, overload operators like * and +, perform shape area calculations via inheritance, and manipulate text files.

Uploaded by

Omkar Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
907 views1 page

C++ Practical 2nd Sem BCA Assignments

This document contains a C++ programming assignment for a Bachelor of Computer Applications course. The assignment consists of 12 programming problems focusing on topics like operator overloading, exception handling, matrix operations, inheritance, file input/output, and inline functions. Students are asked to write C++ programs that demonstrate try-catch blocks, overload operators like * and +, perform shape area calculations via inheritance, and manipulate text files.

Uploaded by

Omkar Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like