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

  Write a program to accept a number representing

Write a program to accept a number representing how many first names the user willenter from the command line (5 names maximum), and the actual first names, fromthe command line. Create an array dynamically that has the same size as number ofnames.

  The use of decision logic

The use of decision logic is one of the major concepts of computer programming.

  Generates numbers in the fibonacci sequence

Write a class called fibs that generates numbers in the Fibonacci sequence (each number is the sum of the previous two). The sequence starts 1, 1, 2, 3, 5, ...

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

  Design and implement a library system

Design and implement a library system that does the following: ? Takes details of a student/library users: first name, last name, other names, user ID number, and nationality.

  Struct complex

A complex number can be represented by two parts, real and image. A series complex data can be organized as a group of elements by linked list, which is shown as below: struct Complex

  Describe an example application of polymorphism

Provide and describe an example application of polymorphism that could be used in a program solution. List and describe the class relationships.

  A program computes and displays the number of centimeter

The Earth's ocean levels have risen an average of 1.8 millimeters per year over the past century. Write a program computes and displays the number of centimeters and number of inches the oceans rose during this time.

  Stores a series of numbers in a binary tree.

Queue Converter, Write a program that stores a series of numbers in a binary tree. Then have the program insert the values into a queue in ascending order. Dequeue the values and display them on the screen to confirm that they were stored in the prop..

  Create your own while-end repetition structure

Create your own While-End repetition structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example. Be sure to provide an overview of what your repetition structure is doing. Provide a walk-through of yo..

  You are asked to write a simple driver program

In this assignment in c, you are asked to write a simple driver program and set of functions (maybe in a library) that can be performed on a binary search tree. Your program should allow user to insert/delete integer values into the binary search ..

  Write function that finds the minimum of three double value

1. Write a function that finds the minimum of three double values. This function should use another function that finds the minimum of two double values.

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