Question: Write a function interest( ) that takes one input, a floating-point interest rate (e.g. 0.06 which corresponds to a 6% interest rate). Your function should
Write a function interest( ) that takes one input, a floating-point interest rate (e.g. 0.06 which corresponds to a 6% interest rate). Your function should compute and return how long (in years) it will take an investment to double in value. Note: The number of years it takes an investment to double does not depend upon the value of the initial investment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
