I copied that code from an even number example done by my professor, posted on his site. It has to be right..
Could the interest variable that is involved in the loop be affecting it?
Type: Posts; User: Bryan29
I copied that code from an even number example done by my professor, posted on his site. It has to be right..
Could the interest variable that is involved in the loop be affecting it?
Loan Amount: 10000
Number of Years: 5
Interest Rate Monthly Payment Total Payment
5.0/// / 50000.0--- 3000000.0
5.125// 51250.0--- 3075000.0
5.25/// 52500.0--- 3150000.0
5.375// ...
My new code:
import java.util.Scanner;
public class Exercise04_21 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
The formula is:
(loanAmount * monthlyInterestRate) / 1 - (1 / (1 + monthlyInterestRate)^numberOfYears*12)
, copied from the book. I entered it in using several different variables and 1 long...
Hello, I'm trying to make a program that compares loans with interest rates from 5% - 8%, with an increment of 1/8.
The output should look something like:
Loan Amount: 10000
Number of Years: 5...