No idea to write this function

Sinasolar

New member
Joined
Nov 30, 2020
Messages
1
Hi guys, i dont have any idea how to solve this problem.
I am waiting for help from you. Thanks

We have a main machine that gives us 10$ per second. Also we have up to 7 modules that can be attached to the main machine to increase the output. Each attached modules gives us 2% of the collected money at every 10 seconds from starting the main machine but not more than 60$.
Installation cost of these modules are reduced from collected money instantly when it is installed. These costs are listed below:
1st module: 120$
2nd module: 180$
3rd module: 270$
4th module: 405$
5th module: 607$
6th module: 911$
7th module: 1366$

We want to reach 20,000$ what is the minimum time to reach the target? And also in what times we should install these modules?
 
Top