Question: 6. Write a Python program that asks for an interest rate. The program computes the number of years that it takes an initial investment
6. Write a Python program that asks for an interest rate. The program computes the number of years that it takes an initial investment of $200 to grow to $250 given the annual interest rate that the user entered. In your output the rate should be immediately followed by %. A sample run: >>main() Enter the annual interest rate: 6 At 6.0% 200 gets to 250 in 4 years
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Program Sample output Rawcode import math importing m... View full answer
Get step-by-step solutions from verified subject matter experts
