Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Bank Account project I have a full code, but too many errors and not enough

ID: 3787260 • Letter: C

Question

C++ Bank Account project

I have a full code, but too many errors and not enough assistance with resolving them. I'm hoping for some kind of new layout.

A.Assume

i.SavingsAccount: Assume an Interest Rate of 0.03

ii.HighInterestSavings: Assume an Interest Rate of 0.05, Minimum Balance = $2500

iii.NoServiceChargeChecking: Assume an Interest Rate = 0.02, Minimum of Balance = $1000

iv.ServiceChargeChecking – Assume account service charge = $10, Maximum number of checks = 5, Service Charge if customer exceeds the maximum number of checks = $5.

v.NoServicechargeChecking: Assume an interest rate = 0.02, Minimum Balance = $1000

vi.HighInterestChecking: Assume an interest rate = 0.05, Minimum Balance = $5000

vii.CertificateOfDepsit: Assume an interest rate = 0.05, Initial Number of Maturity Months = 6

    

B.Capitalize the first letter of the derived class names.

C.Use the following driver to validate your program:

#include

#include

#include

#include "bankAccount.h"

#include "SavingsAccount.h"

#include "HighInterestSavings.h"

#include "NoServiceChargeChecking.h"

#include "ServiceChargeChecking.h"

#include "HighInterestChecking.h"

#include "CertificateOfDeposit.h"

#include "checkingAccount.h"

using namespace std;

int main()

{

    vector accountsList;

       //SavingsAccount( Name, Account number, Balance ) - Assume an interest rate = 0.03

    accountsList.push_back(new SavingsAccount("Bill", 10200, 2500));

       //HighInterestSavings(Name, Account Number, Balance) -- Assume an interest rate = 0.05, Minimum balance = $2500

    accountsList.push_back(new HighInterestSavings("Susan", 10210, 2000));

       //NoServiceChargeChecking(Name, Account Number, Balance) -- Assume an interest rate = 0.02, Minimum balance = $1000

    accountsList.push_back(new NoServiceChargeChecking("John", 20100,

                                                    3500));

       //ServiceChargeChecking(Name, Account Number, Balance) -- Assume account service charge = $10, Maximum number of checks = 5, Service Charee Excess Number of Checks = $5

    accountsList.push_back(new ServiceChargeChecking("Ravi", 30100, 1800));

       //HighIntererestChecking(Name, Account Number, Balance) - Assume an inerest rate = 0.05, Minimum balance = $5000

    accountsList.push_back(new HighInterestChecking("Sheila", 20200, 6000));

       //Certificate(name, Account Number, Balance, Interest Rate, Number of Months) - Assume an initial interest rate = 0.05, Initial Number of Maturity Months = 6

    accountsList.push_back(new CertificateOfDeposit("Hamid", 51001, 18000,

                                                0.075, 18));

    cout << "January: -------------" << endl;

    for (int i = 0; i < accountsList.size(); i++)

    {

        accountsList[i]->createMonthlyStatement();

        accountsList[i]->print();

        cout << endl;

    }

    cout << " February: -------------" << endl;

    for (int i = 0; i < accountsList.size(); i++)

    {

        accountsList[i]->createMonthlyStatement();

        accountsList[i]->print();

        cout << endl;

    }

    for (int i = 0; i < accountsList.size(); i++)

    {

         accountsList[i]->withdraw(500);

    }

    cout << " March: -------------" << endl;

    for (int i = 0; i < accountsList.size(); i++)

    {

        accountsList[i]->createMonthlyStatement();

        accountsList[i]->print();

        cout << endl;

    }

    System(“pause”);

    return 0;

}

The Expected Output is:

January:

-------------

Savings account: Bill    ACCT# 10200    Balance: $2575.00

High Interest Savings: Susan     ACCT# 10210    Balance: $2100.00

No Service Charge Check. John    ACCT# 20100    Balance: $3500.00

Service Charge Checking: Ravi    ACCT# 30100    Balance: $1790.00

Higher Interest Checking: Sheila         ACCT# 20200    Balance: $6300.00

Certificate of Deposit: Hamid    ACCT# 51001    Balance: $19350.00

February:

-------------

Savings account: Bill    ACCT# 10200    Balance: $2652.25

High Interest Savings: Susan     ACCT# 10210    Balance: $2205.00

No Service Charge Check. John    ACCT# 20100    Balance: $3500.00

Service Charge Checking: Ravi    ACCT# 30100    Balance: $1780.00

Higher Interest Checking: Sheila         ACCT# 20200    Balance: $6615.00

Certificate of Deposit: Hamid    ACCT# 51001    Balance: $20801.25

March:

-------------

Savings account: Bill    ACCT# 10200    Balance: $2216.82

High Interest Savings: Susan     ACCT# 10210    Balance: $2315.25

No Service Charge Check. John    ACCT# 20100    Balance: $3000.00

Service Charge Checking: Ravi    ACCT# 30100    Balance: $1270.00

Higher Interest Checking: Sheila         ACCT# 20200    Balance: $6420.75

Certificate of Deposit: Hamid    ACCT# 51001    Balance: $22361.34

Press any key to continue . . .

Explanation / Answer

#include "iostream.h"
#include "bankAccount.h"
#include "SavingsAccount.h"
#include "HighInterestSavings.h"
#include "NoServiceChargeChecking.h"
#include "ServiceChargeChecking.h"
#include "HighInterestChecking.h"
#include "CertificateOfDeposit.h"
#include "checkingAccount.h"

using namespace std;

int main()
{
vector accountsList;

//SavingsAccount( Name, Account number, Balance ) - Assume an interest rate = 0.03
accountsList.push_back(new SavingsAccount("Bill", 10200, 2500));

//HighInterestSavings(Name, Account Number, Balance) -- Assume an interest rate = 0.05, Minimum balance = $2500
accountsList.push_back(new HighInterestSavings("Susan", 10210, 2000));

//NoServiceChargeChecking(Name, Account Number, Balance) -- Assume an interest rate = 0.02, Minimum balance = $1000
accountsList.push_back(new NoServiceChargeChecking("John", 20100, 3500));
  

//ServiceChargeChecking(Name, Account Number, Balance) -- Assume account service charge = $10, Maximum number of checks = 5, Service Charee Excess Number of Checks = $5
accountsList.push_back(new ServiceChargeChecking("Ravi", 30100, 1800));

//HighIntererestChecking(Name, Account Number, Balance) - Assume an inerest rate = 0.05, Minimum balance = $5000
accountsList.push_back(new HighInterestChecking("Sheila", 20200, 6000));

//Certificate(name, Account Number, Balance, Interest Rate, Number of Months) - Assume an initial interest rate = 0.05, Initial Number of Maturity Months = 6
accountsList.push_back(new CertificateOfDeposit("Hamid", 51001, 18000, 0.075, 18));
  

cout << "January: -------------" << endl;
for (int i = 0; i < accountsList.size(); i++)
{
accountsList[i]->createMonthlyStatement();
accountsList[i]->print();
cout << endl;
}

cout << " February: -------------" << endl;
for (int j = 0; j < accountsList.size(); j++)
{
accountsList[j]->createMonthlyStatement();
accountsList[j]->print();
cout << endl;
}

for (int k = 0; k < accountsList.size(); k++)
{
accountsList[k]->withdraw(500);
}

cout << " March: -------------" << endl;
for (int m = 0; m < accountsList.size(); m++)
{
accountsList[m]->createMonthlyStatement();
accountsList[m]->print();
cout << endl;
}
System(“pause”);
return 0;
}