What is the actual value you code produces and the value you expected it to produce.
I suspect this line
MortgageMonthlyPayment = LoanAmount*((InterestRate/12)*(1+(InterestRate/12))*360*(term*12))/((1+(InterestRate/12))*360*(term*12)-1);
is wrong, how did you come by it? I think you will be needing to use the pow(...) function somewhere in this equation.
The expected result should be $1,167.15.
I came by that line realizing that 30*12 is 360. I am reading about the Pow() function, but I do not understand how to set it up.
For right now when I do run my program I am getting $958.34