Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question

Assume you want to deposit a certain amount of money into a saving account, and then leave it alone to draw interest for next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you require to deposit today to make that happen? You can use following formula, which is known as the present value formula, to find out-

P= F/(1/+r)^n

The terms in the formula are-

P is present value, or the amount that you want to deposit today. F is the future value that you want in account. (In this case, F is $10,000.)r is the annual interest rate (expressed in decimal form) n is number of years that you plan to let the money sit in the account.

Write down a program that has a function named presentValue that performs this calculation. The function has to accept the future value, annual interest rate, and number of years as arguments. It should return the present value that is the amount that you need to deposit today. Show the function in a program that lets user experiment with different values for the formula's terms.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9719128

Have any Question?


Related Questions in Computer Engineering

1 under what circumstances is it advantageous for a company

1. Under what circumstances is it advantageous for a company competing in foreign markets to concentrate its value chain activities in a select few locations? Under what circumstances is it advantageous for a company com ...

What are impacts that flexible work schedules can have on a

What are impacts that flexible work schedules can have on a employee's productivity?

The newly elected president needs to decide the remaining 4

The newly elected president needs to decide the remaining 4 spots available in the cabinet he/she is appointing. If there are 13 eligible candidates for these positions (where rank matters), how many different ways can t ...

Question suppose the distance between two ends of an

Question : Suppose the distance between two ends of an Ethernet LAN with a transmission rate of R bps is d meters. Can you derive a formula to find the minimum frame size, L, needed for an Ethernet packet? Using this for ...

Question suppose that we have a programming language with

Question : Suppose that we have a programming language with only 3 token kinds, UNSIGNED INTEGER, FLOAT and IDENTIFIER. Describe how to build a lexical analyzer for this language (lexical rules, FA, a program to simulate ...

Poblem 1 a firms production function c is given by c q

Problem 1. A firm's production function C is given by C (q) = 0:5q 2+2q 1 2 +18, where q is the level of output. (i) Calculate marginal costs (ii) If all fixed costs are sunk, and the minimum price at which this firm wil ...

Question for this assignment you will continue your

Question: For this Assignment, you will continue your practice as a critical consumer of research. You will critically evaluate a scholarly article related to one-way ANOVA testing. To prepare for this Assignment: • Use ...

What is the prupose of adding nahco3 solution to dissolve

What is the prupose of adding NaHCO3 solution to dissolve the crude products in refinning process (Chemistry)

Like users computers in a domain will have an account

Like users, computers in a domain will have an account established for them. Their account can be seen in AD Users and Computers and viewed or modified there. What if you were going to add a new group of people in a new ...

At a certain temperature 03811 mol of n2 and 1721 mol of h2

At a certain temperature, 0.3811 mol of N2 and 1.721 mol of H2 are placed in a 3.00-L container. N 2 (g)+3H 2 (g) ----->2NH 3 (g) At equilibrium, .1601 mol of N2 is present. Calculate the equilibrium constant, Kc.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As