Good Luck.
Type: Posts; User: Mr.777
Good Luck.
It's not an error but it is coz the variable loanLengthInMonths is not being used anywhere after assigning value to it.
Also, i don't know what you are supposed to do, might be the problem in your...
(1 - Math.pow((1 + monthlyInterest), loanLengthInYears))
It's giving the negative value.
Well, i don't know why aren't you trying to understand what i mean to say.
Simply,
double annualInterest = 5.75; //This is the annual interest rate
double loanAmount = 200000; //This is the...
Can you copy the errors and paste here?
Does this program even compiling? If no, paste here the errors/exceptions.