1.
Write a c++ program for creating Bank Account Class
Create a BankAccount class with the following attributes:
- accountNumber (string)
- accountHolder (string)
- balance (float)
Implement the following methods:
- deposit(float amount)
- withdraw(float amount)
- displayBalance()
2. Write a c++ program for creating Employee Class
Create an Employee class with the following attributes:
- employeeId (int)
- name (string)
- salary (float)
Implement the following methods:
- getEmployeeDetails()
- updateSalary(float newSalary)
- displayEmployeeInfo()
3. Write a c++ program for creating Student Class
Create a Student class with the following attributes:
- rollNumber (int)
- name (string)
- marks (float)
Implement the following methods:
- getStudentDetails()
- updateMarks(float newMarks)
- displayStudentInfo()
4. Write a c++ program for creating Rectangle Class
Create a Rectangle class with the following attributes:
- length (float)
- width (float)
Implement the following methods:
- calculateArea()
- calculatePerimeter()
- displayRectangleInfo()
5. Write a c++ program for creating Complex Number Class
Create a ComplexNumber class with the following attributes:
- real (float)
- imaginary (float)
Implement the following methods:
- add(ComplexNumber other)
- subtract(ComplexNumber other)
- multiply(ComplexNumber other)
- displayComplexNumber()
6. Write a c++ program for creating Time Class
Create a Time class with the following attributes:
- hours (int)
- minutes (int)
- seconds (int)
Implement the following methods:
- addTime(Time other)
- subtractTime(Time other)
- displayTime()
7. Write a c++ program for creating Book Class
Create a Book class with the following attributes
- title (string)
- author (string)
- price (float)
Implement the following methods:
- getBookDetails()
- updatePrice(float newPrice)
- displayBookInfo()