Mortgage Calculator VERSION 3.0


  • Practice Creating and Using Classes

  • Debugging an Application

Your will only create a new class called cls Loan, show in the Class Diagram below:

Here is some description of the clsLoan class methods (should be implemented in the order shown below):

  1. New (constructor) requires 3 parameters (Interest Rate, Loan Amount, and Loan Years)

  2. calculateMortgagePayment calculates the monthly payment of the loan amount. Use the Microsoft.VisualBasic.Pmt  function.

  3. calculateIncomeToQualify = Mortgage Payment * 30%

Here is the sequence diagram of the calculate button:

Unzip our lab file:

Here is the solution: