Download the program ATM.cpp Note, if you are using IE, please right click on the program, then choose save target as.
This program has functions to help you balance your checking account. It lets you enter the initial balance for the month, followed by a series of transactions. For each transaction entered,
A transaction takes the form of a letter, followed by a blank
and a float number. If the letter is a C, then the number is the amount
of a check. If the letter is a D, then the number is the amount
of a deposit. The last transaction consists of the letter E, with
no number following it. A sample run might look like this:
Enter the beginning balance: 879.46 Enter a transaction: C 400.00 Transaction: Check in amount of $400.00 Current balance: $479.46 Service charge: Check - $0.15 Service charge: Below $500 - $5.00 Total service charges: $5.15 Enter a transaction: D 100.0 Transaction: Deposit in amount of $100.00 Current balance: $579.46 Service charge: Deposit - $0.10 Total service charges: $5.25 Enter a transaction: E Transaction: End Current balance: $579.46 Total service charges: $5.25 Final balance: $574.21