One-time investment amount(e.g.,1000); this will be an integer An annual interest rate(must be in percent, as in10%,but
Question:
One-time investment amount (e.g., 1000); this will be an integer An annual interest rate (must be in percent, as in 10%, but don't put the % symbol); this will be a float (could be something like 5.75%)
Number of years of investment (e.g., 5); this will be an integer Produce for the user:
The one-time investment amount The interest rate (in percent form)
The number of years of investment Ending value of the investment Total interest earned RESEARCH:
You will have to look up the formula for computing the ending value of a one-time investment, for a given number of years, at a given rate of interest (simple annual compounding)
You have to produce all financial information as financial figures... $, comma(s), rounded to 2 decimals. You can easily find how to do this on the Web. The simple print formatting we covered in class won't work, as it doesn't handle commas. (There is a very simple way to convert a floating point number to a string representing any amount of money. I suggest you find it out now, as you'll need to use it throughout the quarter.)
Managerial Accounting An Integrative Approach
ISBN: 9780999500491
2nd Edition
Authors: C J Mcnair Connoly, Kenneth Merchant