Answer:
def future_worth(p,i,n):
print("n \t F")
for num in range(1, n+1):
F = round(p * ((1 + i)** num), 2)
print(f"{num}\t{F}")
future_worth(100000, .05, 10)
Step-by-step explanation:
The "future_worth" function of the python program accepts three arguments namely the P (amount invested), i (the interest rate), and n (the number of years). The program runs a loop to print the rate of increase of the amount invested in n number of years.