Write the program in java (with a graphical userinterfaces) and have it calculate and display mortgagepayment amount from user input of the mortgage and the usersselection from a menu of available mortgage loans:-7 years at 5.35%-15 years at 5.5%-30 years at 5.75%Use an arrays for the mortgage data for the different loans.read the interest rates to fill the arrayfrom a sequential file display the mortgage payment amountfollowed by the loan balance and interestpaid for each payment over the term of the loan.add graphics in form of a chart allow the user to loop backand enter a new amount and make a newselection or quit. Insert comments int the program todocument the program.Week 5 > Change Request #7