Question: Perform your Assignment using Multiple files Do not use cin in setters and cout in getters in c++ Case scenario: a) Define the class bankAccount
Perform your Assignment using Multiple files Do not use cin in setters and cout in getters
in c++
Case scenario:
a) Define the class bankAccount to store a bank customers account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors.
b) Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (designed in part (a)). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors.
c) Define/Implement another class for the same case scenario as mentioned above. Your class name, its data members and member methods must be realistic in nature. The IS A relation must be Derived in a way that it depicts Multi-Level Inheritence for the complete case scenario.
Note: All parts a,b,c must be treated and developed as a single task. Implement a meaningfull test function (Main) in order to successfully accomplish this assignment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
