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

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  Write a menu driven program for an online beef

Write a menu driven program for an online beef distribution company. There are 8 different

  Is a void function a function that does not return a value?

Is a void function a function that does not return a value?

  Use numbers 0 through 23 to represent hours

Write a C function seconds_since_jan1() that takes the time as six integer arguments (year, month, day, hour,minute, and second) and returns the number of seconds since the beginning of the year. Use numbers 1 through 12 to represent months. Use numb..

  An integer on this system is 4 bytes long

Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000. a. #include

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Write a program code to compute and build a table of reynold

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Contains a design with a while loop

This problem contains a design with a while loop. Assume that sum references a doubleword in the data segment and that count is in the ECX register. Give a fragment of 80x86 assembly code that implements the design.

  Algorithm to determine which items to take to max weight

Write an algorithm to determine which items to take to maximize the weight of his loot bag. He cannot take a fraction of an item and each item must be taken, or left behind. Loot bag size is Z and and the input is an array of item wieghts as integers..

  Longest increasing subsequence problem

Write a computer program to solve the Longest Increasing Subsequence problem.Your program should read input from a text file (one value per line

  First display the smallest volume and then the largest volum

first display the smallest volume and then the largest volume.

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