subject

Suppose you have a certain amount of money in a savings account that earns compound monthly interest, 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

โ€ข f is the future value of the account after the specified time period.
โ€ข p is the present value of the account.
โ€ข i is the monthly interest rate.
โ€ข t is the number of months.

Write a program that takes the account's present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function thatreturns the future value of the account, after the specified number of months. The program should print the account's future value.

Sample Run

Enter current bank balance:35.7โ†ต
Enter interest rate:0โ†ต
Enter the amount of time that passes:100โ†ต 35.7โ†ต

Btw, this does not work, but is presumably close to the answer.
p=float(input("Enter current bank balance:"))
i=float(input("Enter interest rate:"))
t=float(input("Enter the amount of time that passes:"))

print(p *(1+i)^t)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a โ€œfatal fourโ€ event?
Answers: 2
You know the right answer?
Suppose you have a certain amount of money in a savings account that earns compound monthly interest...
Questions
question
Mathematics, 06.11.2020 19:10
question
Mathematics, 06.11.2020 19:10
question
Biology, 06.11.2020 19:10
question
Social Studies, 06.11.2020 19:10
Questions on the website: 13722363