Program has function named presentvalue for calculations

Assignment Help Programming Languages
Reference no: EM1344132

Suppose you want to deposit a certain amount of money into a saving 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:

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

The terms in the formula are:

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 (expressed in decimal form) n is the number of years that you plan to let the money sit in the account.

Write a program that has a function named presentValue that performs this calculation. The function 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 function in a program that lets the user experiment with different values for the formula's terms.

Reference no: EM1344132

Questions Cloud

Explaining function in sop and pos : Simplify the function in SOP and POS and draw logic gates design, using the minimum possible number of gates.(if you need to further simplify using Boolean algebra please do so).
Discuss the role of advertising also the desired impact : Discuss the role of advertising also the desired impact on the industry's demand curve. Contrast this to advertising at the industry level.
Valuation techniques-mergers and acquisitions : What are some of the valuation techniques commonly used in Mergers and Acquisitions? Compare and contrast the valuation techniques common to Mergers and Acquisitions activities.
Determine the effective annual yield : Stanley Hart invested in a municipal bond that promised an annual yield of 6.7%. The bond pays coupons twice a year.
Program has function named presentvalue for calculations : Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.
Question based on bond and stock valuation : "SRK Airport" authority issued a series of 3.4% 30 year bonds in February 2012. Interest rates rose substantially in the given years of the issue and made value of the bond decline.
Find what is the value of the firm''s debt : Evaluate What is the value of the firm's equity and find what is the value of the firm's debt?
Computation of the projects npv : Consider you are considering a project to develop a new software package. You and your team are making a list of the revenues and costs that are relevant in the computation of the project's NPV.
Solving problems on finance : Anaconda Copper Company created a subsidiary in Chile last year to mine copper ore. The proportion of net income paid back to the parent firm as a dividend would be recorded in the current account subcategory of;

Reviews

Write a Review

Programming Languages Questions & Answers

  Computer sales and repair store system

It is required to design a relational database system for a "realistic" application

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Hubspot: inbound marketing and web 2.0

Hubspot: Inbound Marketing and Web 2.0

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Explaining law of diminishing returns

As computer word size gets larger and larger, there is a law of diminishing returns; speed of execution of application programs doesn't increase and may, in fact, decrease.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Examine the boxplot

Examine the boxplot and briefly discuss the overall pattern of electricity usage for the households.

  Program a maze-type game using assembly language

Project requires you to program a maze-type game using Assembly Language, it is not acceptable to use any other programming language for this project

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