Question: Java program Build the interface: A BMI calculator First: add a Layered Pane; drag it from the right window to your blank frame. Then enlarge

Java program  Java program Build the interface: A BMI calculator First: add a

Build the interface: A BMI calculator First: add a Layered Pane; drag it from the right window to your blank frame. Then enlarge the pane to make it cover your entire frame. Use the text fields and labels to build the following application. Example: String inch = jTextField1.getText(); You need to convert value in the text field from String to integer when you do the calculation. How to Calculate BMI 1 feet = 12 inches BMI= weight in pounds x703/height in inches Example: Jane weighs 150lbs and is 5 feet 4 inches tall. Jane's height in inches is (5 * 12) + 4 = 64" multiply the weight by 703. 150 * 703 = 105450 multiply the height by itself 64 times 64 = 4096 Finally divide the first figure by the second. 105450/4096 = 25.7 Jane's BMI s 25.7 Bonus points (2pts): If the user enters invalid or empty input, you need to popup an invalid input message

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 Databases Questions!