/*****************************************************************
** HeightConversion
**
** Sample dialogue:
**
**    PROMPT>java HeightConversion
**    Please enter your height in feet and inches
**    Feet: 5
**    Inches: 7.5
**    Height = 173.07 cm
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
import java.io.*;

public class HeightConversion
{
   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) throws IOException
   {
      BufferedReader stdin =
         new BufferedReader(new InputStreamReader(System.in), 1);

      System.out.println("Please enter your height in feet and inches");

      System.out.print("Feet: ");
      int feet = Integer.parseInt(stdin.readLine());

      System.out.print("Inches: ");
      double inches = Double.parseDouble(stdin.readLine());

      double cm = (feet * INCHES_PER_FOOT + inches) * FACTOR;

      System.out.print("Height = " + cm + " cm");
   }
}

