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, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
question
Computers and Technology, 24.06.2019 17:50
You work in the accounting department and have been using a network drive to post excel workbook files to your file server as you complete them. when you attempt to save a workbook file to the drive, you see the error message: “you do not have access to the folder ‘j: \’. see your administrator for access to this folder.” what should you do first
Answers: 2
You know the right answer?
Project: Calculating Future Investment Value

Problem Description:

Write a...
Questions
question
Mathematics, 20.01.2021 05:00
question
Mathematics, 20.01.2021 05:00
question
Mathematics, 20.01.2021 05:00
question
Mathematics, 20.01.2021 05:00
question
Mathematics, 20.01.2021 05:00
Questions on the website: 13722363