[x] doubles_in_days must follow logic where user is giving number of days during which doubling happens, and then this is applied each hour or day according to the input (note that doubles in 4 days is different than 1.25x growth factor daily)
[x] hours_in_day should be hard coded, and not input parameter
Note that temp variables can start with and end with to make it clear they are merely temp variables to keep code clean. Also they must use names that make it completely clear what those variables are. Each line of the code should be completely clear to read.
Improvements
DO NOT spend time with these before we have rolled-out a usable version as per above.
[ ] make everything hour based, but report daily based
Blocking use
doubles_in_days
must follow logic where user is giving number of days during which doubling happens, and then this is applied each hour or day according to the input (note that doubles in 4 days is different than 1.25x growth factor daily)hours_in_day
should be hard coded, and not input parameterif you have:
you must make it instead:
Note that temp variables can start with and end with to make it clear they are merely temp variables to keep code clean. Also they must use names that make it completely clear what those variables are. Each line of the code should be completely clear to read.
Improvements
DO NOT spend time with these before we have rolled-out a usable version as per above.