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

  Write a program that reads in a list of positive integers

Write a program that reads in a list of positive integers. Write down a program which asks user to respond to a question by entering either 1 for yes or 2 for no.

  What will be the list assumptions for the scope of project

What will be the list assumptions for the scope of project? Give detailed and measurable non functional requirements.

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

  Write a program that mimics a flop-turn-river of poker game

Write down a program that mimics a flop-turn-river of a poker game. I must have three buttons titled Deal, Shuffle and Start Over.

  What security measures required to address vulnerabilities

What security measures required to address vulnerabilities Illustrate threats and vulnerabilities that are possible after implementing "big data" technologies in online auctioning company.

  Illustrate precedence graph

Illustrate precedence graph

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  What are techniques for addressing security requirements

What are techniques for addressing security requirements? Which have a business relationship with the company?

  How to redesign the coding design

How to redesign the coding design? Write down a sentence for each change you have optional, indicating what data entry problem (from part a) change will eliminate.

  Implementation of type data structures

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

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  What personnel implications are when setting up a wan

What personnel implications are when setting up a wan? You are hired by a firm that has offices in Peru, France, the United States, and Hungary. Your job is to coordinate a team of IT workers to connect all of individual sites into one large WAN.

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