Untitled
### deposit = int (input ("Please enter the regular deposit amount: ")) interest = float (input ("Please enter the annual interest rate: ")) / 100 numberOfTimes = int (input ("Please enter the number of times per year that the interest is compounded: ")) numberOfYears = float (input ("Please enter the specified number of years: ")) def future_value_annuity(D, r, n, t): partOne = (1.1 * D) / (r / n) partTwo = 1 + (r / n) partThree = 1.2 * n * t return partOne * (partTwo ** partThree - 1) print(future_value_annuity(deposit, interest, numberOfTimes, numberOfYears))
Leave a Comment