Assignemnt #26 and BMICalc.java

Code

    /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: BMICalc1
    /// File Name: BMICalc1.java
    /// Date Finished: 10/22/2015
    
    import java.util.Scanner;
    
    public class BMICalc1{
        public static void main(String[] args){
            Scanner keyboard = new Scanner(System.in);
            
            double m, kg, bmi;
            
            System.out.print("Your height in m: ");
            m = keyboard.nextDouble();
            
            System.out.print("Your weight in kg: ");
            kg = keyboard.nextDouble();
            
            bmi = kg / (m*m);
            
            System.out.println("Your BMI is " + bmi );
        }
    }
    

Picture of the output

Assignment 26