Assignment #48 BMI Categories

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name: BMICategories
    /// File Name:  BMICategories.java
    /// Date Finished 11/17/2015
    
   import java.util.Scanner;
    
    public class BMICategories 
    {
        
        public static void main( String[] args ) 
        {
            
            Scanner keyboard = new Scanner(System.in);
            
            double m, kg, bmi;
            int ft, in, lbs;
            
            System.out.print( "Your height in feet: " );
            ft = keyboard.nextInt();
            
            System.out.print( "Your height in inches: " );
            in = keyboard.nextInt();
            
            m = (ft+(in / 12))*0.3048;
            
            System.out.print( "Your weight in lbs: " );
            lbs = keyboard.nextInt();
            
            kg = lbs*0.453592;
            
            bmi = kg / (m*m);
            
            System.out.println( "Your BMI is " + bmi );
            
            if ( bmi < 15 ) 
            {
                System.out.println( "Very severely underweight!!!!" );
            }
            
            if ( bmi >= 15 && bmi <= 16 ) 
            {
                System.out.println( "Severely underweight" );
            }
            
            if ( bmi > 16 && bmi < 18.5 )
            {
                System.out.println( "Underweight" );
            }
            
            if ( bmi >= 18.5 && bmi < 25 ) 
            {
                System.out.println( "Normal weight" );
            }
            
            if ( bmi >= 25 && bmi < 30 ) 
            {
                System.out.println( "Overweight" );
            }
            
            if ( bmi >= 30 && bmi < 35 ) 
            {
                System.out.println( "Obese" );
            }
            
            if ( bmi >= 35 && bmi < 40 ) 
            {
                System.out.println( "Severely obese" );
            }
            
            if ( bmi >= 40 ) 
            {
                System.out.println( "Awfully obese!( NEED TO EXERCISE!)" );
            }
            
        }
    }
   


    

Picture of the output

// Assignment 48