Answer:
See explanation below.
Explanation:
For this case the program needs to take the inputs as P,r and n and the output would be as A and printed on the system. The code is:
# Inputs
P = float(input("Enter the present value : "))
r = float(input("Enter your APR : "))
n = float(input("Enter the number of years : ") )
# Output
A = P*(1 +(r/100))**n
print("The future values is:", A)
And the result obtained is:
Enter the present value : 1000
Enter your APR : 0.95
Enter the number of years : 5
The future values is: 1048.4111145526908