Create a class POINT to represent a point in Cartesian coordinate system Choose appropriate data members. Provide member functions: Default constructor Parameterized constructor Input Output Distance( returns the distance between two POINT objects, the function takes one object as an input) isZero(determines if a point is the center) Midlepoint(returns the middle point , takes one object as an input and returns the answer in a POINT object) isEqualTo (compare two POINTs) isGreaterThan (compares two POINT in terms of the distance from the center ) o Above two function takes one POINT object as an argument and returns true if the condition is satisfied and false otherwise. plz solve it with C++.
Create a class POINT to represent a point in Cartesian coordinate system Choose
appropriate data members. Provide member functions:
Default constructor
Parameterized constructor
Input
Output
Distance( returns the distance between two POINT objects, the function takes one object
as an input)
isZero(determines if a point is the center)
Midlepoint(returns the middle point , takes one object as an input and returns the answer
in a POINT object)
isEqualTo (compare two POINTs)
isGreaterThan (compares two POINT in terms of the distance from the center )
o Above two function takes one POINT object as an argument and returns true if
the condition is satisfied and false otherwise.
plz solve it with C++.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps