subject

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
P = F/(1 + r)n
The terms in the formula are as follows:
• P is the present value, or the amount that you need to deposit today.
• F is 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.

Code 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 an application that lets the user experiment
with different values for the formula's terms.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 25.06.2019 06:10
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game behind everything else d. in front of everything else select the best answer from the choices provided
Answers: 1
question
Computers and Technology, 25.06.2019 06:30
Which component is typically used as an amplifier a battery a transistor a microchip a diode
Answers: 1
question
Computers and Technology, 25.06.2019 10:30
What is workflow? how do you create your own workflow?
Answers: 1
You know the right answer?
Write a method named presentValue that performs this calculation. The method should accept the futur...
Questions
question
Mathematics, 05.05.2020 16:41
question
Mathematics, 05.05.2020 16:41
Questions on the website: 13722361