Question: Code MUST in C++ Your Point class will define a 2 dimensional point (a point with an x, and y coordinate). It should have getter
Code MUST in C++
Your Point class will define a 2 dimensional point (a point with an x, and y coordinate). It should have getter methods for each coordinate and a method, Distance, to calculate the euclidian distance between this Point and another. Note that Distance is a method of the Point class.
Your main function should create at least three points, calculate the distance between them, and report their coordinates and the calculated distance to the user. You do not need to prompt the user for the coordinates of the Points that you create.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
