Question

Suppose you have a certain amount of money in a savings account that earns compound monthly...

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 that
returns the future value of the account, after the specified number of months.
the program should print the account's future value.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the code in python language. Let me know if needed in some other language.

 def futureValue(curVal, intRate, nMonths): return curVal * pow(1+intRate, nMonths) curVal = float(input("Input the current value: ")) intRate = float(input("Input the interest rate: ")) nMonths = float(input("Input the number of months: ")) print(futureValue(curVal, intRate, nMonths))

Here is a sample output:

Input the current value: 3 Input the interest rate: 0.2 Input the number of months: 4 6.2208

Comment in case of any doubts.

Add a comment
Know the answer?
Add Answer to:
Suppose you have a certain amount of money in a savings account that earns compound monthly...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • LULUPULUS! WORK AREA Suppose you have a certain amount of money in a savings account that...

    LULUPULUS! WORK AREA 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 • fis 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 How...

  • Suppose you want to deposit a certain amount of money into a savings account and then...

    Suppose you want to deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today make that happen? You can use the following formula, which is known as the present value formula, to find out:                                    P = F / (1+ r)^n The terms in...

  • P5.3      Present Value. Suppose you want to deposit a certain amount of money into a savings...

    P5.3      Present Value. Suppose you want to deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today tomake that happen? You can use the following formula, which is known as the present value formula, to find out: P = F/(1+r)^n The terms in the...

  • Write a program that calculates the amount of money that you must invest In a savings...

    Write a program that calculates the amount of money that you must invest In a savings account at a given interest rate for a given number of years to have a certain dollar amount at me end of the period Y our program will ask the user for the amount the user wants to have at the end of the term (future value). the number of years the user plans to let the money stay in the account, and the...

  • 14.Compound Interest hank account pays compound interest, it pays interest not only on the principal amount...

    14.Compound Interest hank account pays compound interest, it pays interest not only on the principal amount that was deposited into the account, but also on the interest that has accumulated over time. Suppose you want to deposit some money into a savings account, and let the account earn compound interest for a certain number of years. The formula for calculating the balance of the account afer a specified namber of years is The terms in the formula are A is...

  • 3. Suppose you have money invested in a savings monthly. You also make a deposit of D dollars once each month, and you...

    3. Suppose you have money invested in a savings monthly. You also make a deposit of D dollars once each month, and you make a withdrawal of P percent of the balance each month. (a) Sketch a compartmental diagram for the amount of money in the account. (b) Write a difference equation (or recurrence relation) for this model (c) Find the fixed points (d) Suppose that r=0.03 and P 0.07 . Find the amount D that you should deposit each...

  • Visual C# Create Present Value application Application that lets you deposit a certain amount of money...

    Visual C# Create Present Value application Application that lets you deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today to make that happen? You can use the following present-value formula, to find out. P =F/(1+r)^n P is the present value, or the amount...

  • The present value of the money in your savings account is $420, and you're receiving 3% annual interest compounded monthly

    The present value of the money in your savings account is $420, and you're receiving 3% annual interest compounded monthly. What is the future value in two months?

  • The principal represents an amount of money deposited in a savings account subject to compound interest...

    The principal represents an amount of money deposited in a savings account subject to compound interest at the given rate. Find how much money will be in the account after the given number of years (Assume 360 days in a year.), and how much interest was earned. 5) 1.9tA= Pert Y= (1. :) - 1 Principal: $3500 Rate: 4.5% Compounded: monthly Time: 4 years amount in account: $4865.38; interest earned: $673.82 amount in account: $4188.85; interest earned: $688.85 amount in...

  • JAVA PLEASE! Suppose you save $100 each month into a savings account with the annual interest...

    JAVA PLEASE! Suppose you save $100 each month into a savings account with the annual interest rate 5%. So, the monthly interest rate is 0.05/12 = 0.00417. After the first month, the value in the account becomes 100 * (1 + 0.00417) = 100.417 After the second month, the value in the account becomes (100 + 100.417) * (1 + 0.00417) = 201.252 After the third month, the value in the account becomes (100 + 201.252) * (1 + 0.00417)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT