This is a dummy application to be used as part of a software development interview.
- Treat this code as if you owned this application, do whatever you feel is necessary to make this your own.
- There are several deliberate design, code quality and test issues that should be identified and resolved.
- Below is a list of the current features supported by the application; as well as some additional features that have been requested by the business owner.
- In order to work on this take a fork into your own GitHub area; make whatever changes you feel are necessary and when you are satisfied submit back via a pull request. See details on GitHub's Fork & Pull model
- The project uses maven to resolve dependencies however if you want to avoid maven configuration the only external JAR that's required is junit-4.11.
- Refactor and add features (from the below list) as you see fit; there is no need to add all the features in order to "complete" the exercise. Keep in mind that code quality is the critical measure and there should be an obvious focus on testing.
- You'll notice there is no database or UI; these are not needed - the exercise deliberately avoids these requirements.
- REMEMBER: this is YOUR code, made any changes you feel are necessary.
- You're welcome to spend as much time as you like; however it's anticipated that this should take about 2 hours.
A dummy application for a bank; should provide various functions of a retail bank.
- A customer can open an account DONE
- A customer can deposit / withdraw funds from an account DONE
- A customer can request a statement that shows transactions and totals for each of their accounts
- Different accounts have interest calculated in different ways DONE
- Checking accounts have a flat rate of 0.1%
- Savings accounts have a rate of 0.1% for the first $1,000 then 0.2%
- Maxi-Savings accounts have a rate of 2% for the first $1,000 then 5% for the next $1,000 then 10%
- A bank manager can get a report showing the list of customers and how many accounts they have DONE
- A bank manager can get a report showing the total interest paid by the bank on all accounts DONE
- A customer can transfer between their accounts DONE
- Change Maxi-Savings accounts to have an interest rate of 5% assuming no withdrawals in the past 10 days otherwise 0.1% DONE
- Interest rates should accrue daily (incl. weekends), rates above are per-annum
I do not know where to apply the accured interest. This is supposed to happen daily. The method Account.accrueInterest() will deposit the interest accrued on the current balance, however there is no schedule enforcing this daily process. Does this mean interest will be accrued on the interest from the previous day, as well?
Interest only accrues on positive balances.
Customers have a map of accounts with unique account names. Customer objects are now responsible for deposit, withdrawal, and transfer calls.
Account creation now happens inside the Customer object since Accounts need a parent Customer. Free-floating Account objects should not be created. Account objects should not be responsible for deposit and withdrawal calls. AccountType enum is used to ensure only valid account types are used to create Accounts.