Write down a program that has a function named presentvalue

Assignment Help Computer Engineering
Reference no: EM132395

Question

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

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

The terms in formula are-

P is present value, or amount that you require 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 (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 which performs this calculation. The function has to accept the future value, annual interest rate, and number of years as arguments. It has to return the present value, which is amount that you require to deposit today. Demonstrate function in a program that lets the user experiment with dissimilar values for the formula's terms.

 

 

Reference no: EM132395

Questions Cloud

How can sophie use applocker : How can Sophie use AppLocker.
Explore paper on vmware security : Explore paper on VMware Security
Write down an assembly language program : Write down an assembly language program The product number from one to five (3 characters wide, right justified)
Produce two random integer numbers between 1 and 200 : Produce two random integer numbers between 1 and 200.
Write down a program that has a function named presentvalue : Write down a program that has a function named presentValue
Describe mutual strategy to maintain enterprise-level system : Describe mutual strategy to maintain enterprise-level system
Create a white paper based on knowledge : Create a white paper based on knowledge
What changes have to be made to accept $ and cents : What changes have to be made to accept $ and cents
What is oracle administration documentations : What is oracle administration documentations

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Describe mutual strategy to maintain enterprise-level system

Describe mutual strategy to maintain enterprise-level system

  Why didn''t the vendor just bid fewer disks

Why didn't the vendor just bid fewer disks

  Bourne shell and design suitable functions

Bourne shell and design suitable functions

  Determine technology which has changed cafe,coffee shop

Determine technology which has changed cafe,coffee shop? Think things such as marketing, food preparation, inventory ordering or re-ordering, customer tracking, and more.

  What is microprocessor - motorola 68k assembly language

What is microprocessor - Motorola 68k assembly language? Implement your plan using a user vectored interrupt number 3. Use busy line from the printer to trigger the interrupt. The printer interrupt level is 2. Explain the extra hardware to make t..

  Is it right that rbac functionality is complicated

Is it right that RBAC functionality is complicated

  How to illustrate a memory map for a system

Illustrate a memory map for a system with a memory capability of 512MB. Each memory location in system is 8 bits.

  Procedure to generate indexes for foreign keys

Procedure to generate indexes for foreign keys.

  Implementation of type data structures

How can string and word variable type data structures be implemented?

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  What will be the exercise ratio of men and women

What will be the exercise ratio of men and women? Results indicated that women averaged 2 hours per week and men averaged 1.25 hour per week.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd