Question: Bank Accounts Mini Project NoServiceChargeChecking A checking account with no monthly service churge is a checking : account. Therefore, it inherits all the properties of

 Bank Accounts Mini Project NoServiceChargeChecking A checking account with no monthly

Bank Accounts Mini Project NoServiceChargeChecking A checking account with no monthly service churge is a checking : account. Therefore, it inherits all the properties of a checking account. Furthermore, this type of account pays interest, allows the account holder to write checks, and requires a minimum bulance Banks has many kinds of accounts: savings, checking, certificate of deposits, and money market These accounts are used serve customers as well as meeting their specific needs. The most common of these accounts are savings and checking. Each of these accounts has various options. For example, you may have a savings account that requires no minimum balance but has a lower interest rate. Similarly, you may have a checking account that limits the number of checks you may write. Another type of account that is used to save money for the long term is certificate of deposit (CD). In this programming exercise, you use abstract classes and pure virtual functions to design classes to manipulate various types of accounts. For simplicity, assume that the bank offers three types of accounts: savings, checking, and certificate of deposit, as described next. HighlaterestChecking: A checking account with high interest is a checking account with no monthly service charge. Therefore, it inherits all the properties of a no service charge checking account. Furthermore, this type of account pays higher interest and requires a higher minimum balance than the no service charge checking account Savings Account: A savings account is a bank account. Therefore, it inherits all the properties of a bank account. Furthermore, a savings account also pays interest. HighlaterestSavings: A high-interest savings account is a savings account. Therefore, it inherits all the properties of a savings account. It also requires a minimum balance Savings accounts: Suppose that the bank offers two types of savings accounts: one that has no minimum balance and a lower interest rate and another that requires a minimum balance and has a higher interest rate CertificateOfDeposit: A certificate of deposit account is a bank account. Therefore, it inherits all the properties of a bank account. In addition, it has instance variables to store the number of CD maturity months, interest rate, and the current CD month Checking accounts: Suppose that the bank offers three types of checking accounts: one with a monthly service charge, limited check writing, no minimum balance, and no interest; another with no monthly service charge, a minimum balance requirement, unlimited check writing and lower interest, and a third with no monthly service charge, a higher minimum requirement, a higher interest rate, and unlimited check writing. , , Write the definitions of the classes described above together with a test program and split your files into the following header (h) and implementation (.cpp) files Certificate of deposit (CD): In an account of this type, money is left for some time, and these accounts draw higher interest rates than savings or checking accounts. Suppose that you purchase a CD for six months. Then we say that the CD will mature in six months. The penalty for early withdrawal is stiff 1. accounts.cpp includes the main function. 2 bank Accounts 3. certificateOfDeposit.h 4. checking Account.h 5. highinterestCheckingh 6. highlnterestCheckingh 7. noServiceChargeCheckingh 8. savings Account.h 9. serviceChargeChecking.h The figure below shows the inheritance hierarchy of these bank accounts Caree Certificates SavingAccount In your main function, 1. Create a dynamic array of pointers to Bank Account and store a number of different objects of bank accounts. Service Checking NoService Charger Checking HighlaterestChecking Itighoferestre The declaration starts like this: : Note that the classes Bank Account and Checking Account restrict. That is we cannot instantiate objects of these cases. The other classes are not abstract BankAccount **accounts - new Bank Account Every bank accounts an account number, the name of the owner, and a balance Therefore, instance variables such as name, account Number, and balance should be declaroi in the abstract clav Bank Account. Some operations common to all types of accounts are retrieve scount owner's name, account number, and account balance, make deposits, withdraw money , : and create monthly statements. So, include functions to implement the operations. Some of these 2. While coding, use it to document cach step of creating a class or a member function. 3. Work on the code incrementally to achieve results in a small sap of time. For example, you may try write your code for Branch 1, then Branch 2 in the figure below. , . BankAccount fanctions will be pure virtual Checking Account A checking secnunt is a bank account. Therefore, it inherits all the properties a of a bank account. Because one of the objectives of a checking account is to be able to write checks, include the pure virtual function write('heck to write a check a Savings Certificate Deposit C High interest Saving ServiceCharge Checking service charge checking account is a checking account. Therefore, it inherits all the properties of checking account. For simplicity, sume that this type of account does not pay my interest, allows the account holder to write a limited number of checks ich month, and does not require any minimum balance. Include appropriate med constants instance . variables, and functions in this class Brunch! Branch 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!