/** provides methods to read a pair of doubles and perform arithmetic
 *  on them.
 */
import java.io.*;
public class PairOfDoubles {

  /** read two doubles and return the result of dividing
   *  the first by the second.
   */
  public double divide() throws IOException {
    return KeyboardReader.getDouble() / KeyboardReader.getDouble();
  }

  /** read two doubles and return their product.
   */
  public double multiply() throws IOException {
    return KeyboardReader.getDouble() * KeyboardReader.getDouble();
  }
}

