Initialize the accounts with a zero balance


Assignment:

1. You are to write the basis for what will become, in increments, a small "banking system." This first increment just maintains up to 25 accounts and 0 - 1 million transactions.

2. Store the 25 accounts, including account numbers and balances as an array or arrays, as appropriate.

3. Input will consist of a transaction type (CR for credit and DB for debit), an account number and an amount.

4. You are to (1) initialize the accounts with a zero balance; (2) read in the transactions and adjust the balance of the matching account appropriately; (3) at the end of the program, print out the balances for all accounts.

5. Things to remember:

a) What if the account number on a transaction doesn't match an existing account number?

b) What if an account balance drops below zero? Overdrafts are not allowed.

c) What if the transaction type doesn't match DB or CR?

Solution Preview :

Prepared by a verified Expert
Other Subject: Initialize the accounts with a zero balance
Reference No:- TGS01937185

Now Priced at $25 (50% Discount)

Recommended (93%)

Rated (4.5/5)