Homework Help Question & Answers
Draw a flowchart and write a program in java that keeps prompting the user to input…
Draw a flowchart and write a program in java that keeps prompting the user to input weight in pounds and height in inches, and then calculates and prints the body mass index (BMI) and health message based on the BMI.
BMI = (weight in punds x 703)/ height in inches 2
Below 18.5 | underweight |
18.5-24.9 | normal |
25-29.9 | overweight |
30.0+ | obese |
The program must have the following 3 methods:
1) A method that reads a number from keyboard. Input to the method: None. Output of method: double variable(BMI). 2) A method that calculates the BMI. Input to the method: two double variables (pounds, inches). Output of the method: double variable(BMI). 3) A method that prints the results. Input to the method: three variables (pounds, inches, BMI). Output of the method: none (void method).