St.
Hopkins college Bangalore BCA 3rd semester C++ Programs list
Part A
1.Write a C++ Program to define a STUDENT class with USN, Name and
Marks in 3 tests of subject. Declare an array of 1O STUDENT objects.
Using appropriate functions, find the average of two better marks for each
student. Print the USN, Name and average marks.
2.Write a C++ Program to Deposit amount and withdraw options in bank
transactions for saving and current account and display the total
balance using friend functions.
3. Write a C++ Program to find the area of right angle, equilateral and
scalene triangle using function overloading.
4. Write a C++ program to create a class called COMPLEX and implement
the following overloading functions ADD that return a COMPLEX number.
i. ADD (a, s2) - where a is an integer (real part) and s2 is a complex
number.
ii. ADD (s1, s2) - where s1 and s2 are complex numbers.
5. Write a C++ Program to compare two strings by overloading = =
operator.
6. Write a C++ Program to perform addition of two matrices by overloading
+ operator.
7. Write a C++ Program to sort elements using bubble sort.
8. Write a C++ Program to perform stack operations for Integers, Decimal,
Characters using class templates.
9. Write a C++ Program to calculate area and perimeter of rectangle using
concept of inheritance.
10. Write a C++ Program to calculate area and volume of various figures
using function overriding.
Two programs not learned from part A
4. Write a C++ program to create a class called COMPLEX and implement
the following overloading functions ADD that return a COMPLEX number.
i. ADD (a, s2) - where a is an integer (real part) and s2 is a complex
number.
ii. ADD (s1, s2) - where s1 and s2 are complex numbers.
8. Write a C++ Program to perform stack operations for Integers, Decimal,
Characters using class templates.
Part B
1.Write a program to prepare a shopping list.
2.Write a program to perform banking transaction.
3.Write a program to swap two numbers using friend function.
4.Write a program to calculate area and circumference of circle using
inline function.
5.Write a program to perform multiplication of two matrices using
operator overloading
6.Write a program to implement operations on a queue
7.Write a program to create a student report using inheritance
8.Write a program to find area and volume of figures using function
overloading.
9.Write a program to show returning current object, accessing member
data of current object and returning values of object using this pointer.
10.Write a program to sort elements using templates.
Two programs not learned from part B
2.Write a program to perform banking transaction.
6.Write a program to implement operations on a queue