// Helene Martin, Garfield High School (from Stuart Reges, Marty Stepp)
// Unstructured version of BMI calculator
import java.util.*;

public class BMIUnstructured {
	public static void main(String[] args) {
		System.out.println("Welcome to my super BMI calculator.");
		System.out.println("It'll read data for two people and compute their body mass index and weight status.\n");
		Scanner console = new Scanner(System.in);
		
		System.out.println("Enter a person's information: ");
		System.out.print("height (in inches)? ");
		double height1 = console.nextDouble();
		System.out.print("weight (in pounds)? ");
		double weight1 = console.nextDouble();
		double bmi1 = weight1 / (height1 * height1) * 703;
		System.out.println();
		
		System.out.println("Person #1 body mass index = " + bmi1);
		
		if(bmi1 < 18.5) {
			System.out.println("underweight");
		} else if(bmi1 < 25) {
			System.out.println("normal");
		} else if(bmi1 < 30) {
			System.out.println("overweight");
		} else {
			System.out.println("obese");
		}
	}
}
