Question: how to write code in java Create a program called Account Value. This will display the growth in value of an amount with a fixed

how to write code in java

Create a program called Account Value. This will display the growth invalue of an amount with a fixed interest rate over a numberof months. The program needs the monthly saving amount, the annual interest

Create a program called Account Value. This will display the growth in value of an amount with a fixed interest rate over a number of months. The program needs the monthly saving amount, the annual interest rate in percent, and the number of months. The monthly interest rate is calculated once and is calculated as interestRate/12. Suppose you save $100 each month into an account with the annual interest rate 5%. So the monthly interest rate is 0.05/12 = 0.00417. After the first month the value in the account becomes 100 (1+0.00417) = 100.417 After the second month, the value in the account becomes (100+ 100.417) * (1 + 0.00417) = 201.252 and so on The program must be able to calculate the value of amount after a specified number of months have passed. This calculation must be a separate method so it can be called separately from the print method below. The program must also be able to print all the data about the amount in the account including a table showing the value of the amount for each month of the year.

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautil import javaio public class Main public double amount public void setValuedouble amou... View full answer

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 Programming Questions!