Assignemnt #49 BMI Categories

Code

   
    /// Name: Jake Johnson
    /// Period: 7
    /// Program Name: 
    /// File Name: BMICategories.java
    /// Date Finished: 11/19/2015
    
import java.util.Scanner;

public class BMICategories
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        double in, ft, lbs, BMI, inTall, inMetric, lbsMetric;
    
        System.out.print("Your height (feet only): ");
        ft = keyboard.nextDouble();
        System.out.print("Your height (inches): ");
        in = keyboard.nextDouble();
        System.out.print("Your weight in pounds: ");
        lbs = keyboard.nextDouble();
        
        inTall = (ft * 12) + in;
        inMetric = inTall * 0.025;
        lbsMetric = lbs * 0.45;
        BMI = lbsMetric / (inMetric * inMetric);
        System.out.println("Your BMI is: " + BMI);
        System.out.println("");
        
        if(BMI < 15.0)
        {
            System.out.println("You are very severely underweight.");
        }
        if(BMI > 15.0 && BMI < 16.0)
        {
            System.out.println("You are severely underweight.");
        }
        if(BMI > 16.1 && BMI < 18.4)
        {
            System.out.println("You are underweight.");
        }
        if(BMI > 18.5 && BMI < 24.9)
        {
            System.out.println("You are of a normal weight.");
        }
        if(BMI > 25.0 && BMI < 29.9)
        {
            System.out.println("You are overweight.");
        }
        if(BMI > 30 && BMI < 34.9)
        {
            System.out.println("You are moderately obese.");
        }
        if(BMI > 35.0 && BMI < 39.9)
        {
            System.out.println("You are severely obese.");
        }
        if(BMI > 40.0)
        {
            System.out.println("You are very severely obese.");
        }
    }
}
    

Picture of the output

This should work