Using Javafx Use Formula Calculate Appropriate Bmi Values Notice Even Input Pounds Inches Q37037130

Using JavaFx. Use theformula to calculate the appropriate BMI values. Notice that evenwhen the input is pounds and inches, the output iskg/m^2 do not forhget to multiply by 703 if the U.S.radio button is selected. This result should appear when theCalculate button is pressed.

Use theseFormulas:

Formula: weight(kg)/[height(m)]2

Formula:703xweight(ibs)/height(in)]2

.Only modify thechange Unit and Calculated Result.

BMIController.javafile below:

package bmi;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;

public class BMIController {
   @FXML
    private Button calculate;

    @FXML
    private Label heightLBL;
    @FXML
    private Label result;
    @FXML
    private Label weightLBL;

    @FXML
    private RadioButton us;
    @FXML
    private RadioButton metric;

    @FXML
    private TextField weightTF;
    @FXML
    private

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.