5.6k views
4 votes
Which of the following sections of code will calculate the monthly payment for a $150,000 house with a 30 year mortgage at an annual rate of 5.5%, and assign the result to dblMPay?

User Rahul Bali
by
5.7k points

1 Answer

6 votes

Answer:

dblMPay = Pmt(dblAIntRate / 12, intYears * 12, -dblLoanAmt)

Step-by-step explanation:

Dim dblAIntRate as Double = 5.5%

Dim dblLoanAmt as Double = 150,000

Dim intYears as Integer = 30

Dim dblMPay as Double

dblMPay = Pmt(dblAIntRate / 12, intYears * 12, -dblLoanAmt)

User Kirby
by
5.3k points