public class Point {

  private int x;
  private int y;

  public Point() {
    x = 0;
    y = 0;
  }

  public Point(int xval, int yval) {
    x = xval;
    y = yval;
  }

  public int SumCoordinates() {
    return x+y;
  }

  public double getDistance() {
    return Math.sqrt(x*x+y*y);
  }

  public String toString() {
    return "("+x+","+y+")";
  }

  public void reflectXaxis() {
    y = -y;
  }

  public void reflectYaxis() {
    x = -x;
  }

  public void reflectOrigin() {
    x = -x;
    y = -y;
  }

  public boolean equals(Point p2) {
    if (x == p2.x && y == p2.y)
      return true;
    else
      return false;
  }

  public void setX(int xval) {
    x = xval;
  }

  public void setY(int yval) {
    y = yval;
  }

  public void multC(int c) {
    x = c*x;
    y = c*y;
  }

  public void translate(Point p2) {
    x = x+p2.x;
    y = y+p2.y;
  }

  public boolean vertical(Point p2) {
    if (x == p2.x)
      return true;
    else
      return false;
  }

  public boolean horizontal(Point p2) {
    if (y == p2.y)
      return true;
    else
      return false;
  }

  public double slope(Point p2) {

    int deltax = p2.x-x;
    int deltay = p2.y-y;
    double s = 1.0*deltay/deltax;
    return s;

  }

  public static void main(String[] args) throws IOException {

    Point p1 = new Point();
    Point p2 = new Point(7, 10);
    Point p3 = new Point(-4, -4);

    
  }
}
