Need Help ?

Home / Expert Answers / Other /   (a) Write a function to compute and return the amount of money, A, that you will have in n yea

  (a) Write a function to compute and return the amount of money, A, that you will have in n yea ...


  (a) Write a function to compute and return the amount of money, A, that you will have in n years if you invest P dollars now at annual interest rate i. Take n, i, and P as parameters. The formula is   A = P(1 + i)n   (b) Write a function to compute and return the amount of money, P, that you would need to invest now at annual interest rate i in order to have A dollars in n years. Take n, i, and A as parameters. The formula is: P =A / (1 + i)n   (c) Write a function that will read and validate the inputs for this program. Using call by value/address, return an enumerated constant for the choice of formulas, a number of years, an interest rate, and an amount of money, in dollars. All three numbers must be greater than 0.0.   (d) Write a main program that will call the input routine to gather the data. Then, depending on the user's choice, it should call the appropriate calculation function and print the results of thecalculation.  



Radioactive Tutors

Radio Active Tutors is a freelance academic writing assistance company. We provide our assistance to the numerous clients looking for a professional writing service.

NEED A CUSTOMIZE PAPER ON THE ABOVE DETAILS?
Order Now


OR

Get outline(Guide) for this assignment at only $10

Get Outline $10

**Outline takes 30 min - 2 hrs depending on the complexity and size of the task
Designed and developed by Brian Mubichi (mubix)
WhatsApp