Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

oop c++ plz make sure your answer is step by step Bank Accounts Mini Project Banks has many kinds of accounts: savings, checking, certificate of

oop c++
plz make sure your answer is step by step
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Bank Accounts Mini Project 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 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 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. 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 The figure below shows the inheritance hierarchy of these bank accounts. BankAmunt CheckingAccount Certificate of Deposit Savings Account ServiceChargeChecking NoServiceCharge Checking HighinterestCheckling High InterestSavings Note that the classes BankAccount and Checking Account are abstract. That is, we cannot instantiate objects of these classes. The other classes are not abstract. BankAccount: Every bank account has an account number, the name of the owner, and a balance. Therefore, instance variables such as name, account Number, and balance should be declared in the abstract class BankAccount. Some operations common to all types of accounts are retrieve account owner's name, account number, and account balance; make deposits, withdraw money and create monthly statements. So, include functions to implement these operations. Some of these functions will be pure virtual Checking Account A checking account is a bank account. Therefore, it inherits all the properties 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 writeCheck to write a check. ServiceChargeChecking: A service charge checking account is a checking account. Therefore, it inherits all the properties of a checking account. For simplicity, assume that this type of account does not pay any interest, allows the account holder to write a limited number of checks each month, and does not require any minimum balance. Include appropriate named constants, instance variables, and functions in this class, NoServiceChargeChecking: A checking account with no monthly service charge 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 balance. HighlnterestChecking 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. HighInterestSavings: 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. Certificate Deposit: 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. Write the definitions of the classes described above together with a test program and split your files into the following header (b) and implementation (.cpp) files: 1. accounts.cpp: includes the main function 2. bank Accounts.h 3. certificateOfDeposit.h 4. checkingAccounth 5. highInterestCheckingh 6. highInterestCheckingh 7. noServiceChargeCheckingh 8. savings Account.h 9. serviceChargeChecking.h In your main function, 1. Create a dynamic array of pointers to BankAccount and store a number of different objects of bank accounts The declaration starts like this: BankAccount **accounts - new 2. While coding, use Git to document each step of creating a class or a member function. 3. Work on the code incrementally to achieve results in a small gap of time. For example, you may try write your code for Branch 1, then Branch 2 in the figure below. Bank Account Bank SavingsAccount CertificateOldeposit HighInterestSavings Branch 1 Branch 2 4. Use a loop to iterate through the accounts array and print each account's details. 5. Cheating and copying will result in a FAIL grade (0/15). 6. Submission: 23:59 on Monday 17 Jan 2022. 7. No extensions or exceptions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

1-8 What is cultural competence? [LO-6]

Answered: 1 week ago