Question: (JAVA) 1) Write a program that calculates the future investment value of a specific amount of money left in a bank account for a period

(JAVA)

1) Write a program that calculates the future investment value of a specific amount of money left in a bank account for a period of years. The following formula calculates the future investment value when an initialDeposit is left in a bank account for some years which compounds interest monthly at monthlyInterestRate:

futureInvestmentValue = initialDeposit * ((1 + monthlyInterestRate) years*12)

Test your code by calculating the future investment value of a deposit of $1000 that is left in the account for 10 years, and earns a monthly interest rate of .0027. The future investment value of such a deposit should be approximately $1382. You will not have any user input for this assignment. Because we don't really care about pennies in this problem, convert the result of the formula to int before printing.

2) Only after you have completed step 1) successfully, add a loop to this program that shows how the deposit will grow year by year. This improved program will print a table with two columns (one column for year and one column for deposit) and 10 rows (one row for each year). The first row shows the deposit after year 1, the second row shows the deposit after year 2, the last row shows the deposit after year 10. You will not have any user input for this assignment.

In order to make your table readable, print column headers "Year" and "Deposit"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!