Write a program that prompts the user for the following information:
- The amount of the loan
- The length of the loan in years
- A low interest rate in %
- A high interest rate in %
Print out the monthly payment for the different interest rates from low to high, incremented by 0.25%.
Run the following three samples and copy the sample runs into your class file, print out the code for the class and hand in.
Mortgage problem
Principal = $100000.00
Time = 30 years
Low rate = 11%
High rate = 12%
Annual Interest Rate
|
Monthly Payment
|
|
|
11.00
|
952.32
|
11.25
|
971.26
|
11.50
|
990.29
|
11.75
|
1009.41
|
12.00
|
1028.61
|
Your program should make use of the built-in pow
method located in the Math class.