Get Writing Help
WhatsApp
    ✍ ️Get Free Writing Help
WhatsApp

Draw a flowchart and write a program in java that keeps prompting the user to input…


Write My Assignment FREE

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

BMI WEIGHT CATEGORIES                   Weight Status
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).

0 0
Add a comment
Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes
Write My Assignment FREE Get A Free Quote →
Limited Offer     Get 25% off your first order — use code STUDYLINK25 at checkout    Claim Now
 
Don`t copy text!