Preview

Creating Base Class Bank Accounts

Good Essays
Open Document
Open Document
477 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Creating Base Class Bank Accounts
STEP 1: Create the Multifile Project and the Main (Base) Class Back to top

Create a new project that consists of the base class BankAccount.

The BankAccount class should contain, at minimum, the following members.

It should contain data members to store a bank customer's balance and account number. These should be of different and appropriate data types. It should have function members that do the following: set the account number; return the account number; return the account balance; deposit money into the account; and withdraw money from the account.

STEP 2: Create the CheckingAccount Class Derived From the BankAccount Class Back to top

The class CheckingAccount should contain, at a minimum, the following members.

It should contain a data member to keep track of the number of withdrawal transactions made on the account. Whenever a withdrawal is made, this number should be incremented. Override the base class, withdraw-money function, and add the capability to deduct transaction fees from an account using the following guidelines. The checking account is allowed three free transactions. For each successful withdrawal transaction past the three free transactions, there will be a service fee of 50 cents per transaction. The service fee should be deducted from the account balance at the time the transaction is made. If there are insufficient funds in the account balance to cover the withdrawal plus the service fee, the withdrawal should be denied. The function should return a value to indicate whether the transaction succeeded or failed. Transaction fees should be deducted only from successful transactions, but the transaction count should be incremented in either case.

STEP 4: Test Program Operation Back to top

All data-input and data-display operations (cin and cout) should be done in the function main() test program. The test program

You May Also Find These Documents Helpful

  • Satisfactory Essays

    (a) Journalize the transactions, including explanations. (Note, enter all accounts in one box. The dates have been included to help with formatting).…

    • 448 Words
    • 9 Pages
    Satisfactory Essays
  • Better Essays

    Kudler Fine Foods

    • 971 Words
    • 4 Pages

    Kudler Fine Foods is a chain of specialty food stores that provide the finest food and wines to the general public. There are three locations of Kudler Fine Foods:…

    • 971 Words
    • 4 Pages
    Better Essays
  • Good Essays

    RO1033 2007 WebFill 000

    • 678 Words
    • 5 Pages

    I certify that I have the authority to request an electronic debit from the account named above, and I authorize the N.C. Department of Revenue to present debit entries for…

    • 678 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Shields Blvd). Credits; cash deposits and isolated funds transfers. Debits; funds transfers, OK Lotto, OD charge. Current balance as of 10/16/2017: $82.99…

    • 476 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    5. [3] Ten processes share a critical section implemented by using a semaphore x. Nine…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    What Is Stock Anyway

    • 1035 Words
    • 4 Pages

    There is a limit to how much you can deposit. Banks will also charge a fee if money is taken out early. It saves money on taxes. Banks will charge a fee if money is taken out early.…

    • 1035 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    o Provide a set of values that will test the normal operation of this program segment.…

    • 349 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Survey of Accounting 1

    • 668 Words
    • 3 Pages

    7. The bookkeeper recorded a check written for $188 to pay for the May utilities expense as $888 in the cash disbursements journal…

    • 668 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Ans1A

    • 1010 Words
    • 3 Pages

    3)Suppose a bank advertises a “free” checking account but requires that a $2000 minimum average daily balance be maintained in the…

    • 1010 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    QUESTION

    • 525 Words
    • 3 Pages

    I am requesting waive the penalty fee assessed on the above referenced account for the period of ending 09/30/2013.The payment here was sent only one day late because electronic issues. We have been timely for all other periods.…

    • 525 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Customer Based Business Model

    • 23877 Words
    • 96 Pages

    Almost all banks have a wide variety of products to offer to the customers. There are regular transaction between the customer and the bank and therefore many notifications and records, that are required by both the bank and the customer for their satisfaction there are many requests that a customer makes that the bank has to oblige and thus keep records of the same in order to refer to them when ever required.…

    • 23877 Words
    • 96 Pages
    Powerful Essays
  • Powerful Essays

    This is a transaction based service that employs branchless banking model to achieve payments, deposits, withdrawals and transfers.…

    • 1547 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Type of Bank Account

    • 718 Words
    • 3 Pages

    Recorded note on the meeting of Joint Committee on discrepancy if any due to 01-01-1997 wage revision held at ONGC Conference Hall, 2nd Floor, Old Secretariat Building, Tel Bhavan; Dehradun on 18th April, 2011.…

    • 718 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Chefe

    • 690 Words
    • 3 Pages

    During this course we will follow the same data storing structure as used by the…

    • 690 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Banking Procedure

    • 938 Words
    • 4 Pages

    Wants to thank and take opportunity to send my sincere gratitude to the management of BUNT’S SANGHA’S SM SHETTY COLLEGE OF SCIENCE,COMMERCE AND MANAGEMENT STUDIES. MR. SRIDHARA SHETTY.the principal & professor of the college for providing me the great opportunity to do my project work.…

    • 938 Words
    • 4 Pages
    Good Essays

Related Topics