Assignment #26 BMI Calculator 1
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: BMICalculator1
/// File Name: BMICalculator1.java
/// Date Finished 10/9/2015
import java.util.Scanner;
public class bmicalc
{
public static void main( String[] args )
{
Scanner Lacey = new Scanner(System.in);
double feet, inches, pounds;
System.out.println ( " Your height in feet: " );
feet=Lacey.nextDouble();
System.out.println ( " Your height in inches: " );
inches=Lacey.nextDouble();
System.out.println ( " Your weight in pounds: " );
pounds=Lacey.nextDouble();
System.out.println( " Your BMI is " + ((pounds/((feet)*(feet)))*703 + "" ));
}
}
Picture of the output
// lalllllalaaaalalalalsllwqaolosaodsk