Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Making a Difference (Body Mass Index Calculator App) The formulas for calculatin

ID: 3689903 • Letter: M

Question

Making a Difference (Body Mass Index Calculator App) The formulas for calculating the BMI are BMI = weightlnPounds Times 703/height In Inches Times height In Inches or BMI = weight In Kilograms/height In Meters Times height In Meters Create a BMI calculator app that allows users to enter their weight and height and whether they are entering these values in English or metric units, then calculates and displays the user's body mass index. The app should also display the following information from the Department of Health and Human Services/National Institutes of Health so that users can evaluate their BMIs: BMI VALUES Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greater

Explanation / Answer

Hi below i have written a sample code for Body Mass Index Calculator using JAVA for your reference, :)

import java.util.Scanner;

public class Ex02_33 {

    public static void main (String [] args) {

        Scanner input = new Scanner (System.in);

        int weight;

        int height;

        int bMI;

         

        System.out.print ("Enter Your Weight in Pounds: ");

        weight = input.nextInt();

        System.out.print ("Enter Your Height in Inches: ");

        height = input.nextInt();

        bMI = (weight * 703) / (height * height);

        System.out.printf ("Your Body Mass Index (BMI) is %d ", bMI);

        System.out.println ("BMI VALUES");

        System.out.println ("Underweight: less than 18.5");

        System.out.println ("Normal:      between 18.5 and 24.9");

        System.out.println ("Overweight: between 25 and 29.9");

        System.out.println ("Obese:       30 or greater");

    }

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote