-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ravinder edited this page Mar 12, 2018
·
1 revision
Goal: Build a system that simulates a bank account.
- An account has money
- Each account belongs to a person.
- Each account has an account number
- Money can be credited(deposited) into an account
- Money can be debited(withdrawn) from an account
Build a library that lets a user perform all of the above operations. Primarily, a user(programmer) should be able to require your files and easily do the following:
- Create an account
- Credit money into an account
- Debit money from an account
- Generate the account summary of a given account
- Generate the statement of a given account
The summary should contain:
- Account Number
- Name of the account holder
- The current balance in the account
The statement should contain:
- Account Number
- Name of the account holder
- A list of transactions
- Each transaction should contain the type of transaction and the amount
- The current balance in the account
Assumptions:
- For now, assume that a negative balance is acceptable
- As of now, any credit or debit operation is a transaction
Expectations:
- Use objects where applicable
- There is no input and output here.
- Write tests to verify your work