Assignemnt #48 BMI Categories

Code

    ///Name: Morgan Kaplan
    ///Period: 5
    ///Project Name: BMI Categories
    ///File Name: BMIC.java

import java.util.Scanner;

public class BMIC
{
    public static void main( String[] args )
    {
        Scanner momo= new Scanner(System.in);
        double feet, inches, pounds, BMI;
            
            System.out.println ( " Your height in feet: " );
                feet=momo.nextDouble();
            System.out.println( " Your weight in pounds: " );
                pounds=momo.nextDouble();
            System.out.println( " Your BMI is " + ((pounds*4.88)/((feet)*(feet))) + "" );
    
    BMI=((pounds*4.88)/((feet)*(feet)));
        
        if ( BMI< 15 )
         {
             System.out.println( "You are very severly underweight." );
         }
         if ( BMI < 17 && BMI> 14 )
         {
             System.out.println( "You are severly underweight." );
         }
         if ( BMI < 18.4 && BMI > 16.1 )
         {
             System.out.println( "You are underweight." );
         }
         if ( BMI< 24.9 && BMI> 18.5 )
         {
             System.out.println( "You are normal weight." );
         }
         if ( BMI > 25 && BMI< 29.9 )
         {
             System.out.println( "You are over weight." );
         }
      if ( BMI< 24.9 && BMI> 29.0 )
         {
             System.out.println( "You are very severly underweight." );
         }
         if ( BMI < 34.9 && BMI> 30.0 )
         {
             System.out.println( "You are moderately obese." );
         }
        
        if ( BMI < 39.9 && BMI> 35.0 )
         {
             System.out.println( "You are severly obese." );
         }
         if (BMI > 40 )
         {
             System.out.println( "You are morbidly obese." );
         }
    
    }    }

    

Picture of Output

Assignment 48