5.11 Future Value Suppose you have a certain amount of money in a savings account that earns…

Kindly click here to proceed with this order or request a similar one…..

5.11 Future Value

Suppose you have a certain amount of money in a savings account that earns compound yearly interest (in decimal), and you want to calculate the amount that you will have after a specific number of months. The formula is as follows:

F = P × (1 + i)t

The terms in the formula are:

  • F is the future value of the account after the specified time period.
  • P is the present value of the account.
  • i is the yearly interest rate (in decimal).
  • t is the number of months.

Write a program that prompts the user to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should display the account’s future value.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:

print(f'{your_value:.2f}')

Special Note:

  • Solutions that do not include a function will receive no credit.
  • Solutions that use Python features that are not discussed in class will receive no credit.
# put your future value function here
def main():
    # put your solution here
main()

Kindly click here to proceed with this order or request a similar one…..

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *