Assignemnt #26 and BMI Calculator

Code

/// Name: Raff Lisbona
/// Period: 6
/// Program Name: BMI Calculator
/// File Name: BMICalculator.java
/// Date Finished: 9/30/2015

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

Picture of the output

Assignment 26 Assignment 26