3.1 Write a Java program that will compute the future investment value at a given interest rate for a
specified number of years. The java program should have a minimum of two classes.
3.1.1 classA
The main method (starting point) (5)
The object of classb (5)
Should also call the void method named futureInvestmentValue (double investment
Amount, double monthlyInterestRate, int years) (15)
3.1.2 classB
A get method named count_words(String str) (15)
Expected Output:
Input the investment amount: 28000
Input the rate of interest: 7
Input number of years: 6
Years Future Value
1 30024.12
2 32194.57
3 34521.92
4 37017.51
5 39693.51
6 42562.95
Comments
Leave a comment