Execute this application to get the solution files: GetLabFiles.exe or unzip our lab file: Lab3.zip

Mortgage Calculator VERSION 3.0

Objectives: 

  • Understand how to interpret a class diagram and write the appropriate code

  • Practice Creating and Using Classes

  • Understand how to use Arrays

  • Debugging an Application

Your will only create a new class called clsLoan, 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%