You will use the WindowBuilder program the lets users perform monthly payment calculations. The calculations for monthly payment are:

Monthly Payment Calculation

Monthly Payment = [rate + (rate / [[1 + rate] ^ months] ^ -1)] x principal

It's probably easiest to break it down into stages so you can check each stage is giving the right result.

Rate = monthly interest rate (yearly rate / 12)

Months = years of loan * 12

a = 1 + rate
b = Math.pow(a, months)
c = b - 1
d = rate / c
e = rate + d
f = e * loan

Your GUI program should provide a text box for loan amount but drop-down boxes for years and interest rates. Your program should provide a button to perform the calculation and display the results, another button to exit the program, and a third button to save the monthly payment information in an external file.

Your program should check the loan amount input text field and validate the number entered. It should be greater than 0 and less than 1 million. If a non-number is entered your program should display an error message.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.