you have three points in the planar cartesian coordinates that are normally defined with two float values (x and y). Define a class named Point with these two data members. that have the following: Define a print function that prints the coordinates of the three points . Define a function to tells the user if the four points given below are to the left side, right side, above, below , above right ,above left , below right, or below left of each main three points. At last, define a function to find the distance between each point given below with the main three point as shown below: Distance = sqrt ( ( x1 − x)2 + (y1 − y)2) The Points : P1 (3, 5) P2 (-4, 3) P3 (-2,-1) P4 (1,-6)
Assume you have three points in the planar cartesian coordinates that are normally defined with two float values (x and y). Define a class named Point with these two data members. that have the following:
Define a print function that prints the coordinates of the three points .
Define a function to tells the user if the four points given below are to the left side, right side, above, below , above right ,above left , below right, or below left of each main three points.
At last, define a function to find the distance between each point given below with the main three point as shown below:
Distance = sqrt ( ( x1 − x)2 + (y1 − y)2)
The Points :
P1 (3, 5)
P2 (-4, 3)
P3 (-2,-1)
P4 (1,-6)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 6 images