Question: In java John wants to save money for a car. He starts by putting $1 in the bank. Every day, he puts $1 more dollar
In java
John wants to save money for a car. He starts by putting $1 in the bank. Every day, he puts $1 more dollar than the previous day. Each month, the bank gives him 5% interest on his money. Create a function calculateTime to calculate how many days it would take for John to save a given amount of money, given as a parameter m.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
