ok when i run this program it asks questions i enter the following
house price = 1000
down payment = 50
interest rate = .05
number of payments 30
top equation: double tempTop = ((housePrice - downPayment) * (annualInterestRate/12));
bottom equation: double tempBottom = ((1-(1+(Math.pow(annualInterestRate/12, -numberofPayments)))));
double monthlyPayment = (tempTop / tempBottom);
the end results are top equation = 3.9583333333333335
end result for bottom equation = -2.548808761537613E71 negative number
mortgage payment = top/bottom = -1.5530130753887556E-71 negative number