Scala Programming Projects
上QQ阅读APP看书,第一时间看更新

Simulating a retirement plan

Now that we know how to calculate the capital at retirement and after death, it would be useful to combine the two calls in a single function. This function will simulate a retirement plan in one go.