Question: MUST BE IN C#, VISUAL STUDIO. Task - Compute Future Investment Value Build a program that computes future investment value at a given interest rate
MUST BE IN C#, VISUAL STUDIO.
Task - Compute Future Investment Value
Build a program that computes future investment value at a given interest rate for a certain number of years.
Your program should first prompt the user to enter:
The investment amount (e.g., 1000.0)
The annual interest rate (e.g., 0.09)
You program then calculate the future value for the years from 1 to 30 and output the results in a table.
Note: You can use Math.Pow(x,y) for x to the power of y
For example, 10000 is 10 to the power of 4 (i.e., 10^4). You can use Math.Pow(10, 4) to get it.
For practice, you are required to define a method to compute the future value.
static double futureInvestmentValue(double investmentAmount, double interestRate, int year)
You will implement the formula in the method body and return the calculation result.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
