C++ Assignment


✅ Assignment 1: Basic Calculator

Level: Beginner
Task:
Write a C++ program to perform:

  • Addition
  • Subtraction
  • Multiplication
  • Division
    Use a switch-case for selecting the operation.

✅ Assignment 2: Bank Account Program (Class & Object)

Level: Beginner – OOP
Task:
Create a class BankAccount with:

  • Account Holder Name
  • Account Number
  • Balance

Functions:

  • deposit()
  • withdraw()
  • checkBalance()

Create a menu-driven program.


✅ Assignment 3: Student Result System (Using Array of Objects)

Level: Intermediate
Task:
Create a class Student with:

  • Name
  • Roll No
  • Marks in 5 subjects

Functions:

  • input()
  • display()
  • calculatePercentage()

Store details of 5 students using an array of objects.


✅ Assignment 4: Library Management (File Handling)

Level: Intermediate
Task:
Using file handling, create a program with features:

  • Add book (title, author, price)
  • Display all books
  • Search book by title
  • Delete book by title

Use a text file to store book records.


✅ Assignment 5: Operator Overloading

Level: Intermediate – OOP
Task:
Create a class Complex to represent complex numbers.
Overload:

  • + (addition)
  • - (subtraction)
  • * (multiplication)

Example:

c3 = c1 + c2;

Leave a Comment

Your email address will not be published. Required fields are marked *