Question: Write a C program that prints a table showing the value of an invested at different rates of interest over a period of time. The
Write a C program that prints a table showing the value of an invested at different rates of interest over a period of time. The user will enter an interest rate and the number of years the amount that will be invested. The table will show the value of the money at one-year intervalsat that interest rate and the next four higher rates increasing by 1% each time. The equation is given for the calculation based on present and future values and interest rate and a number of years required. Hint A macro or a function can be useful for repetitive calculations. fv = pv x (1 + i)n fv = future value, pv = present value, i = interest rate as a decimal 6% = 0.06 n = years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
