This kata will take place on Nov. 23, 2017. It is an adapted version of the banking kata from http://kata-log.rocks/
To start, download/clone the repository and import the project with IntelliJ. You can also use plain old vim
and sbt
. Enjoy!
Copy of the (almost) original explanation:
Your bank is tired of its mainframe COBOL accounting software and they hired both of you for a greenfield project in - what a happy coincidence
your favorite programming language!
Your task is to show them that your TDD-fu and your new-age programming language can cope with good ole’ COBOL!
Write a class Account
that offers the following methods void deposit(double)
double withdraw(double)
void printStatements()
and double balance
An example statement would be:
Date Amount Balance 24.12.2015 +500 500 23.8.2016 -100 400
There are two solutions available. One is more java-like and the other one is more functional (thanks to Lau and Artur for this solution).