The terms in the formula are as follows: • P is the present value, or the amount that you need to deposit today. •Fis the future value that you want in the account. (In this case, F is $10,000.) r is the annual interest rate. •n is the number of years that you plan to let the money sit in the account. Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the method in a program that lets the user experiment with different values for the formula's terms.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter4: Financial Functions, Data Tables, And Amortization Schedules
Section: Chapter Questions
Problem 4EYW
icon
Related questions
Question

Java Program

16. 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 to make that happen?
You can use the following formula, which is known as the present value formula, to find out:
%3D
(1+r)"
Transcribed Image Text:16. 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 to make that happen? You can use the following formula, which is known as the present value formula, to find out: %3D (1+r)"
316
Chapter 5 Methods
The terms in the formula are as follows:
•Pis the present value, or the amount that you need to deposit today.
•Fis the future value that you want in the account. (In this case, F is $10,000.)
•r is the annual interest rate.
• is the number of years that you plan to let the money sit in the account.
Write a method named presentValue that performs this calculation. The method should
accept the future value, annual interest rate, and number of years as arguments. It should
return the present value, which is the amount that you need to deposit today. Demonstrate
the method in a program that lets the user experiment with different values for the formula's
terms.
Transcribed Image Text:316 Chapter 5 Methods The terms in the formula are as follows: •Pis the present value, or the amount that you need to deposit today. •Fis the future value that you want in the account. (In this case, F is $10,000.) •r is the annual interest rate. • is the number of years that you plan to let the money sit in the account. Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the method in a program that lets the user experiment with different values for the formula's terms.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning