Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed.
Too late to change, and this is not a good idea at all.
As mentioned below you should make it very clear that interest is applied before the expenses.
Hard coded testing does not cover a single decimal returned, eg.
Expected: 'You still have $1550.10', instead got: 'You still have $1550.1'
so it's possible to pass if you don't get a random test that covers this.
Thanks for the kata.
It might be more realistic if the 2dp rounding occurred after each month as opposed to only at the end of the year, and if the interest was applied after expenses were deducted.
As mentioned by the comment below, you should indicate that interest is applied before the expenses :)
This comment is hidden because it contains spoiler information about the solution