/*****************************************************************
** YHeightConversion - same as HeightConverison, except using
** the york package
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
import york.*;

public class YHeightConversion
{
   private static final int INCHES_PER_FOOT = 12;  // inches per foot
   private static final double FACTOR = 2.564;     // cm per inch

   public static void main(String[] args)
   {
      York.println("Please enter your height in feet and inches");

      York.print("Feet: ");
      int feet = York.readInt();

      System.out.print("Inches: ");
      double inches = York.readDouble();

      double cm = (feet * INCHES_PER_FOOT + inches) * FACTOR;

      York.print("Height = " + cm + " cm");
   }
}

