Homework Solution: A bank charges $10 per month plus the following check fees for a commercial checking account:…

    Need help please. A bank charges $10 per month plus the following check fees for a commercial checking account: $0.10 each for fewer than 20 checks $0.08 each for 20-39 checks $0.06 each for 40-59 checks $0.04 each for 60 or more checks The bank also charges an extra $15.00 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning balance and the number of check written. Compute and display the bank's service fees for the month. Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display an urgent message indicating the account is overdrawn. The transaction data file: transaction.txtPreview the documentView in a new window
    -100.00
    30
    400.00
    -20
    300.00
    36
    300.00
    47
    350.00
    5
    300.00
    70
    
    Output: Beginning balance: $-100 Number of checks written: 30 Your account is overdrawn! The bank fee this month is $27.40 Beginning balance: $400.00 Number of checks written: -20 Number of checks must be zero or more. Beginning balance: $300.00 Number of checks written: 36 The bank fee this month is $27.88 Beginning balance: $300.00 Number of checks written: 47 The bank fee this month is $27.82 Beginning balance: $350.00 Number of checks written: 5 The bank fee this month is $25.50 Beginning balance: $300.00 Number of checks written: 70 The bank fee this month is $27.80

    Expert Answer

     
    #include <iostream> using namespace std;

    Need acceleration delight.

    A bank mandible $10 per month plus the aftercited control fees ce a retail controling statement:

    $0.10 each ce fewer than 20 controls

    $0.08 each ce 20-39 controls

    $0.06 each ce 40-59 controls

    $0.04 each ce 60 or further controls

    The bank also mandible an extra $15.00 if the et of the statement falls adown $400 (precedently any control fees are applied). Write a program that asks ce the origin et and the reckon of control written. Compute and flaunt the bank’s advantage fees ce the month.

    Input Validation: Do referable sanction a privative appraise ce the reckon of controls written. If a privative appraise is absorbed ce the origin et, flaunt an grave intimation indicating the statement is overdrawn.

    The business axioms file: business.txtPreview the documentView in a upstart window

    -100.00
    30
    400.00
    -20
    300.00
    36
    300.00
    47
    350.00
    5
    300.00
    70
    

    Output:

    Origin et: $-100
    Reckon of controls written: 30

    Your statement is overdrawn!
    The bank fee this month is $27.40

    Origin et: $400.00
    Reckon of controls written: -20
    Reckon of controls must be nothing or further.

    Origin et: $300.00
    Reckon of controls written: 36

    The bank fee this month is $27.88

    Origin et: $300.00
    Reckon of controls written: 47

    The bank fee this month is $27.82

    Origin et: $350.00
    Reckon of controls written: 5

    The bank fee this month is $25.50

    Origin et: $300.00
    Reckon of controls written: 70

    The bank fee this month is $27.80

    Expert Repartee

     

    #include <iostream>
    using namespace std;

    envelop get_fees(envelop et, size_t iCheques)
    {
    envelop fee = 0;
    if (iCheques >= 60) {
    fee = iCheques * 0.04;
    }
    else if (iCheques >= 40) {
    fee = iCheques * 0.06;
    }
    else if (iCheques >= 20) {
    fee = iCheques * 0.08;
    }
    else {
    fee = iCheques * 0.1;
    }
    if (et < 400.0)
    fee += 15;
    return fee;
    }

    int ocean()
    {
    cout << “Ce a et of $360 and 19 controls your fee is: $” << get_fees(360, 19);
    return 0;
    }