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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!