The function should accept the future value

Assignment Help C/C++ Programming
Reference no: EM13272788

Present Value Suppose you want to deposit a certain amount of money into a savings 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 as follows: * 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. * 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: EM13272788

Questions Cloud

Target adult orthodontia patients : A dentist in Cali, Colombia has decided to target adult orthodontia patients in the United States. He offers the Invisalign braces that are rather high priced in the United States
Identified emerging consumer marketing trends : Read the %u201CFaith Popcorn: Trend-spotter%u201D article. Analyze the identified emerging consumer marketing trends and determine the marketing implications for an organization.
Potential for harnessing of tidal energy in india : Which of the following has a potential for harnessing of tidal energy in India?
How much is robert''s recognized gain on the sale : title subject to the 200000 mortgage, and agreed to pay him 100000 with interest at 6 percent one year from the date of sale. How much is robert's recognized gain on the sale.
The function should accept the future value : 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 expe..
Find the implied volatility of the following european call : Find the implied volatility of the following European call. The call has four months until expiry and an exercise price of $100. The call is worth $6.51 and the underlying trades at $101.50. Assume the risk free interest rate is 8% per annum.
Do these two variables explain a reasonable amount of the : Develop a multiple linear regression equation that describes the relationship between tenure and the other variables in the chart above. Use the Analysis Toolpak located in Excel to perform this multiple regression.
Two independent uniform random variables : x1, x2, x3 are zero mean Gaussian random variables with STD=4.  Let x1 and x2 be independent and x3= a*x1+b*x2. Find the constants “a” and “b” such that the correlation between x1 and x3 is 0.3. What is the correlation between x3 and x2?
Prepare the capstone project : Develop a searchable question using the PICOT format and prepare for the capstone project by listening to the audio interview, "Capstone."

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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