import java.util.Scanner; // make Scanner available to the computer
 
/** Calculate Miles Per Gallon
 *
 * @author Nancy Harris
 * @version V1 - 09/05/2012
 ******************************************************/
public class ConvertInches
{
   public static void main (String args[])
   {
   // declare the containers
      int inches;
      double centimeters;
      final double CENT_TO_INCHES;
    
      // initialize the constant
      CENT_TO_INCHES = 2.54;
      
      // get the input
      
      // prepare the input device
      Scanner keyboard;
      keyboard = new Scanner(System.in); // input is standard input
      
      // prompt the user and get the value
      System.out.print("Enter the inches: ");
      inches = keyboard.nextInt();
      
      // manipulate the data
      centimeters = inches * CENT_TO_INCHES;
      
      // output the result
      System.out.print(inches + " inches = ");
      System.out.print(centimeters + " centimeters. ");
   }
}