Ideal body weight (IBW) is computed in men as 50 + (0.91 × [height in centimeters − 152.4]) and in women as 45.5 + (0.91 × [height in centimeters − 152.4]). By assuming that the height is a numeric value ranging from 100 to 230 centimeters, write a Java program that uses a GUI to let the user compute their IBW. Users are supposed to be able to utilize whichever they prefer (JTextField or JSlider) to enter the height, and the corresponding component should update.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Ideal body weight (IBW) is computed in men as 50 + (0.91 × [height in centimeters − 152.4]) and in
women as 45.5 + (0.91 × [height in centimeters − 152.4]).
By assuming that the height is a numeric value ranging from 100 to 230 centimeters, write a Java program
that uses a GUI to let the user compute their IBW. Users are supposed to be able to utilize whichever they
prefer (JTextField or JSlider) to enter the height, and the corresponding component should update.

 

In Java by using GUI.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT