Assignemnt #22 BMI Calculator

Code

    ///Name:JJ Deng
    ///Period: 6
    ///Program BMI Calculator
    ///File Name: BMICalc.java
    ///Date Finished: 10/7/15
    
    import java.util.Scanner;
          
        public class BMICalc
        {
            public static void main( String[] args )
            {
                Scanner keyboard = new Scanner(System.in);
                double m, kg, bmi, inches, pounds, feet;
          
                System.out.print( "Your height in feet(feet only): " );
                feet = keyboard.nextDouble();
                
                System.out.print( "Your height in inches: " );
                inches = keyboard.nextDouble();
         
                System.out.print( "Your weight in pounds: " );
                pounds = keyboard.nextDouble();
                  
                m = 0.254* (inches + (feet* 12) );
                
                kg = 0.45359* pounds;
         
        
                bmi = (kg / (m*m))*100;
         
                System.out.println( "Your BMI is " + bmi );
                
        }
    }
    

Picture of the output

Assignment 22