subject

Project: Calculating Future Investment Value

Problem Description:

Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula (Note that we are compounding on a monthly basis instead of a yearly basis):

futureInvestmentValue = investmentAmount * (1 + monthlyInterestRate)numberOfMonths

monthlyInterestRate = annualInterestRate/12

For example, if you enter amount 1000, annual interest rate 3.25% (3.25/100), and number of years 1, the future investment value is approximately 1032.99.

Here is a sample run:

Sample:

Enter investment amount: 1000

Enter annual interest rate (in percentage points): 3.25

Enter number of years: 1

Accumulated value is: 1032.9885118105894

What to deliver?

Your .java file including:

1. A sample run at the top with investment amount of 3000, annual interest rate of 5.5%, and 3 years. These should be commented. (2 points)

2. Your code with other appropriate comments. (Code: 5 points, Comments: 3 points)

Hint:

1. CalculateProducts. java in the Classroom Example folder at eLearning provides a good example of a deliverable. It has both the sample run commented and we can run the java file without changing the file.

2. Hint: Use the Math. pow(x, y) method to compute x raised to the power of y.

3. Use the sample run in the instruction to test your program to make sure it is correct before you submit it.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:10
When copying and pasting text, the first step is move your cursor type the text select the copy command select the paste command
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
You know the right answer?
Project: Calculating Future Investment Value

Problem Description:

Write a...
Questions
question
Spanish, 21.02.2020 19:57
question
History, 21.02.2020 19:57
Questions on the website: 13722360