// CS2 Chung #include #include class Point { private: double x; double y; public: Point() { cout << "Enter x and y for a point: "; cin >> x >> y; } Point(double init_x, double init_y) { x = init_x; y = init_y; } double get_x() const { return x; } double get_y() const { return y; } void display() { cout << "(" << x << ", "; cout << y << ")" << endl; } void rotate90(); void shift(double x_amount, double y_amount) { } double dist(Point p) { } }; void Point::rotate90() { } Point middle(Point& p1, Point& p2) // non member function { } void main() { Point p1; p1.shift(1,1); cout << "The shifted point: "; p1.display(); p1.rotate90(); cout << "The 90 degree rotated point: "; p1.display(); Point p2; cout << "The distance between two points = " << p1.dist(p2) << endl; middle(p1,p2); cout << "The midle point between two points: "; middle(p1,p2).display(); }