Question: In-Class 03 - Cartesian Coordinate Class - Part 2 Continue developing a C++ class named CartesianCoordinate2D that has the following functional characteristics: 1. Private double

 In-Class 03 - Cartesian Coordinate Class - Part 2 Continue developing

In-Class 03 - Cartesian Coordinate Class - Part 2 Continue developing a C++ class named CartesianCoordinate2D that has the following functional characteristics: 1. Private double member variable for x coordinate 2. Private double member variable for y coordinate 3. Public default constructor (which initializes both x and y values to 0) 4. Public constructor (which takes input parameters for x and y values) 5. Public get method for x coordinate 6. Public get method for y coordinate 7. Public set method for x coordinate 8. Public set method for y coordinate 9. Public function that returns the point's distance from the origin a. Square root of (x squared) plus (y squared) 10. Public function that returns the mathematical quadrant in which the coordinate lies a. For example: (4, -3) would return the value 4 b. For example: (-5, 1) would return the value 2 c. If a point is on any axis, return the value o 11. Copy constructor (CartesianCoordinate c = b) 12. Copy assignment operator (c = b) 13. Public override of the + operator to add two CartesianCoordinate2D objects together and return their sum (c = a + b) 14. Public override of the += operator to add a CartesianCoordinate2D object into the current object (c += b) 15. Public override of the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!