Project: Calculating Future Investment Value
Problem Description:
Write a...
Computers and Technology, 19.02.2020 23:08 galaalexa
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.
Answers: 3
Computers and Technology, 22.06.2019 14:50
Drag each label to the correct location on the image list the do’s and don’ts of safeguarding your password. a. keep yourself logged in when you leave your computer.b. don’t write your password down and leave it where others can find it.c. share your password with your friends.d.each time you visit a website,retain the cookies on your computer.e. use a long password with mixed characters.1. do's 2. don'ts
Answers: 2
Computers and Technology, 22.06.2019 23:30
Select all that apply. which of the following are proofreading options included in microsoft word? spell check find replace grammar check formatting check
Answers: 1
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
Answers: 1
Biology, 05.11.2020 18:30
Business, 05.11.2020 18:30
Social Studies, 05.11.2020 18:30
Mathematics, 05.11.2020 18:30
Biology, 05.11.2020 18:30
Mathematics, 05.11.2020 18:30
English, 05.11.2020 18:30