In this way, writing the code in C++ we can say that it will be possible to make the coordinates on the planes.
<h3>Writing the code we have:</h3>
<em>#include <iostream></em>
<em>#include <cmath></em>
<em>#include <iomanip></em>
<em>using namespace std;</em>
<em>class Point{</em>
<em>private:</em>
<em>float x;</em>
<em>float y;</em>
<em>public:</em>
<em>Point(){ </em>
<em>x = y = 0;</em>
<em>}</em>
<em>Point(float x, float y){ </em>
<em>this->x = x;</em>
<em>this->y = y;</em>
<em>}</em>
<em>float getX(){ </em>
<em>return x;</em>
<em>}</em>
<em>float getY(){</em>
<em>return y;</em>
<em>}</em>
<em>float getDistance(){</em>
<em>return math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2));</em>
<em>}</em>
<em>string toString(){ </em>
<em>return "("(x1, y)","(x2, y2)")";</em>
<em>}</em>
<em>};</em>
See more about C code at brainly.com/question/17544466
#SPJ1