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

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Computer sales and repair store system

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

  Object-oriented analysis and design

Object-Oriented Analysis and Design,  PART B-object-oriented design involves the steps 13-18:

  Create a simple shell

Create a simple shell. Basically your shell should read the line from standard input, parse the line with command and arguments, and operate the command with arguments.

  Write pseudocode

Write pseudocode that represents the abstract functions of the enqueue and dequeue operations. Define and explain any supplementary information needed by your pseudocode.

  Build a student record managing system application

Build a student record managing system application

  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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Javascript for metric conversions

Write a javascript that will assist the user with metric conversions. Your program should allow the user to specify the names of the units as strings.

  Statement to read variables of type double

Suppose two variables p1 and p2 of type POINT, with two fields, x and y, both of type double, have been declared. Write a statement that reads values for p1 and p2 in that order.

  Write a paper on memory management

Write a paper on Memory Management

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