BMI
import java.util.Scanner;
public class bmi
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
double m, kg, bmi;
int ft, in, lbs;
System.out.print( "So whats your height?(in feet, as we are american)" );
ft = keyboard.nextInt();
System.out.print( "So whats your height?( in inches, because why not)" );
in = keyboard.nextInt();
m = (ft+(in / 12))*0.3048;
System.out.print( "And whats your weight in pounds?" );
lbs = keyboard.nextInt();
kg = lbs*0.453592;
bmi = kg / (m*m);
System.out.println( "Your BMI is..... " + bmi );
if ( bmi < 15 )
{
System.out.println( "THIS IS NOT GOOD. AT ALL" );
}
if ( bmi >= 15 && bmi <= 16 )
{
System.out.println( "Ya, you should probebly work on that" );
}
if ( bmi > 16 && bmi < 18.5 )
{
System.out.println( "Could be worse, could be better" );
}
if ( bmi >= 18.5 && bmi < 25 )
{
System.out.println( "Nice :)" );
}
if ( bmi >= 25 && bmi < 30 )
{
System.out.println( "Could be worse, could be better" );
}
if ( bmi >= 30 && bmi < 35 )
{
System.out.println( "little bit of chub" );
}
if ( bmi >= 35 && bmi < 40 )
{
System.out.println( "Yaaaa... you should really change up your diet" );
}
if ( bmi >= 40 )
{
System.out.println( "HOW DOES IT EVEN GET THIS BAD" );
}
}
}
Picture of the output