Professional Documents
Culture Documents
Level 2 - Almost Real Banking
Level 2 - Almost Real Banking
Level 2 - Almost Real Banking
Definitions
Accounts have owners, balances, account
numbers and overdraft limits
The overdraft limit: amount of money allowed
to be spent in excess of the balance
Transactions are executed in order of submission time
Task
Execute valid transactions
Report the final account balances for valid
account numbers (see Example slide).
Output
<NumberOfValidAccounts>
NumberOfValidAccounts lines: <PersonName> <AccountBalanceAfterTransactions>
Output
2
Amy -5
Andrew 120