Menu

[Solved]Javafx Graphical Interface Application Calculates Loan Payments Presents Good Option Basic Q37099469

JavaFX-

A graphical interface to an application that calculates loanpayments presents a good option for a basic JavaFX project. It willpresent the user with TextFields for collecting loan data – annualinterest rate, term in years and amount loaned. The applicationwill pass this data into an object of the Loan class that youcreated in a previous assignment. In addition to loan data, theapplication will collect income data – salary and wages, interestincome, investment income and other income. The purpose ofcollecting income data is to use it for determining a potentialborrower’s eligibility for a loan of a given amount. The examplebelow shows how this interface should look. Clicking “Calc Payment”will do the following:

 Calculate the potential borrower’s total income as the sum ofsalaries and wages, interest income, investment income and otherincome
 Use an object of the Loan class to store loan data in itsattributes and calculate the periodic payment and sum of paymentsover the life of a loan which has the specified interest rate, termand amount
 Indicate, by displaying a message in the position shown in thesample, whether the potential borrower is eligible for the loanbased on whether the periodic payment divided by one-twelfth oftotal income (the monthly income) is less than or equal to 25%. Ifthe loan payment is greater than 25% of the monthly income, thepotential borrower is not eligible for the loan. Incorporate theactual calculated percent in the message.

Because the percent used for determining eligibility may change,use a named constant placed close to the beginning to represent it.Clicking “Cancel” will close the application. Sample interface:

Loan Payment and Eligibility Calculator Form Salary and wages I Interest income Investment income Other income Total income A

Use whichever style of implementing EvetHandlers you prefer:

the lamba style of EventHandler shown here and demonstrated inLoginFormGridPaneV3.java:

btn.setOnAction((ActionEvent e) -> {

setNotifications();
});

or an object of a named EvenHandler class shown here anddemonstrated in LoginFormGridPaneV3:

ClickSignonButton signonBtnHandler = new ClickSignonButton( this);

btn.setOnAction(signonBtnHandler);

class ClickSignonButton implements EventHandler<ActionEvent> {

LoginFormGridPaneV3 formObj = null;

public ClickSignonButton(LoginFormGridPaneV3 formObj) {

this.formObj = formObj;
}

public void handle(ActionEvent e) {

formObj.setNotifications();
}
}

Loan Payment and Eligibility Calculator Form Salary and wages I Interest income Investment income Other income Total income Annual interest rate (n.nnn%) Term in years Loan amount Monthly payment Total payments over life of loan Text indicating eligibilty will be displayed here. Cale Payment Cancel Show transcribed image text Loan Payment and Eligibility Calculator Form Salary and wages I Interest income Investment income Other income Total income Annual interest rate (n.nnn%) Term in years Loan amount Monthly payment Total payments over life of loan Text indicating eligibilty will be displayed here. Cale Payment Cancel

Expert Answer


Answer to JavaFX- A graphical interface to an application that calculates loan payments presents a good option for a basic JavaFX … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *