Programming Assignment 6
Write a method that computes future investment value at a given interest rate for a specified number of years using the following formula:
futureInvestmentValue = investmentAmount x (1 + monthlyInterestRate)numberOfYears x 12
Use the following method header:
public static double futureInvestmentValue(double investmentAmount, double monthlyInterestRate, int years)
For example, futureInvestmentValue(10000, 5/1200, 5) returns 12833.59.
Write a test program that prompts the user to enter the investment amount (e.g., 1,000) and interest rate (e.g., 4%) and prints a table that displays future value for the years from 1 to 20.
Your program’s output should look like the sample shown in the screenshot below. Green text represents information entered by the user. Black text is produced by the program.
Store the source code in a file named InvestmentValueMethod<your_name>.java. For example, your instructor’s source code would be stored in a file named InvestmentValueMethodDoerschuk.java. In comments at the top of the source code file place the following:
Instructor: Dr. Doerschuk
Programming Assignment 6
Due: <as specified>
<brief description of the problem that the program was written to solve>
Please upload your source code and a screenshot of your output to Blackboard.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.