Question: 1 2 . 4 ( Mortgage Calculator App ) Create a mortgage calculator app that allows the user to enter a purchase price, down -

12.4(Mortgage Calculator App) Create a mortgage calculator app that allows the user to enter a purchase price, down-payment amount and an interest rate. Based on these values, the app should calculate the loan amount (purchase price minus down payment) and display the monthly payment for 10-,20- and 30-year loans. Allow the user to select a custom loan duration (in years) by using a Slider and display the monthly payment for that custom loan duration.
use following templates for fxml, java, and java controller files
package mortgagecalc;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class MortgageCalc extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("MortgageCalc.fxml"));
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("Mortgage Calulator App");
stage.show();
}
public static void main(String[] args){
launch(args);
}
} package mortgagecalc;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;
public class MortgageCalcController implements Initializable {
@Override
public void initialize(URL url, ResourceBundle rb){
// TODO
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!