Question: USING PYTHON. Your application will have two functions, one will be called main() where you will put any input questions and call the other function.
USING PYTHON.
Your application will have two functions, one will be called main() where you will put any input questions and call the other function.
Your second function will calculate the interest earned on your investment. It will take three variables (principle, rate, and time) and return back the total amount (principle + interest earned).
FORMULA
A = P(1 + r/n)^nt
A = amount P = principle R = rate as a percent t = time in years n = 12 for months
Example output:
What is your principle amount: 10000 What is your rate of return as a decimal: .08 (which is 8%) What is your time in years: 10 Your total amount in 10 years will be $22,196.40
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
