Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The First National Bank of San Diego has tasked you to write a JavaFX GUI interface for their mortgage analyzer library from Lab# 1 for
The First National Bank of San Diego has tasked you to write a JavaFX GUI interface for their mortgage analyzer library from Lab# for its loan officers to use. For this lab, you are required to create a JavaFX GUI that provides the correct set of controls and layout for the loan officer to be able to do their work.Create a JavaFX GUI with a controller class that will enable the loan officer to :Enters the amount of the loan, the annual rate of interest, and the duration of the loan in months. To do this the developer must embed an instance of the MortgageAnalyzer class into the JavaFX GUI controller class whose methods will be called from the GUI's internal functions. In addition, create textbox input controls on your GUI to read in these variables as strings first, and then, convert them to numbers.Run a verification check on the information that the user entered to make sure it is correct and the numbers are reasonable.This will require the developer to create a button and add a handler in the Scene Builder application that once clicked should invoke the verify method of the MortgageAnalyzer object and if verified set the data into the MortgageAnalyzer object setting the loan amount, interest, and duration of loan parameters.If bad or anomalous data was entered in setting up details of the loan the user should be advised and allowed to correct the input data.The developer needs to create a message box and raise the message back the user to flag the bad or anomalous data needing correction and allow the user to try again.Once the data is verified to be correct the user can click a button to display the following information nicely aligned and formatted in the GUI: Amount of Loan $ Annual Interest Rate Duration of loan in months Monthly payment $ Total interest paid $To do this the developer must add a button to the GUI and a handler to invoke the MortgageAnalyzer objects calculateMortgageDetails function. In addition, a label will be needed to display the mortgage details nicely on the GUI palette.Do not perform business logic actions or calculations in the GUI instantiate the MortgageAnalyzer from Lab in this GUI and any other interfaces or loanrelated objects and use those APIs to populate or drive GUI elements.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started