Assignemnt #26 and BMI Calculator

Code

   /// Name: Mark Katz
    /// Period: 6
    /// Program Name: BMI Calculator 1
    /// File Name: BMICalculator.java
    /// Date Finished: 9/22/15


 import java.util.Scanner;
  
  public class BMICalculator
  {
      public static void main( String[] args )
      {
          Scanner keyboard = new Scanner(System.in);
          double kg, m, inch, ft, ibs, bmi;
  
         System.out.print( "Your height in (feet only): " );
         ft = keyboard.nextDouble();
          
         System.out.println( "Your height in (inches): " );
         inch = keyboard.nextDouble(); 
 
         System.out.print( "Your weight in pounds: " );
         ibs = keyboard.nextDouble();
          
         kg= ibs*.453592;
         m= ((ft*12)+inch)*0.0254;
        
 
         bmi = kg / (m*m);
 
         System.out.println( "Your BMI is " + bmi );
     }
 }
    

Picture of the output

Assignment26 Assignment26