// COMP 1631 (Fall 2006) // Author(s): 1631 instructors // // Lab Test code - Wednesday solution // // This class is just a holder for the main method where students are required // to insert code (that will involve if statements). public class IffyWednesday { public static void main(String[] args) { int height, weight; height = Console.readInt("Enter person's height (in cm): "); weight = Console.readInt("Enter person's weight (in kg): "); if ((height == 172) && (weight == 68)) { System.out.println("This person is Lewis."); } // if else if ((height == 148) && (weight == 36)) { System.out.println("This person is Alice."); } // else if else { System.out.println("This person is neither Lewis nor Alice."); } // else } // end main } // end class IffyWednesday