Question: Develop a C++ class named CartesianCoordinate2D that has the following functional characteristics: Private double member variable for x coordinate Private double member variable for y

Develop a C++ class named CartesianCoordinate2D that has the following functional characteristics: Private double member variable for x coordinate Private double member variable for y coordinate Public default constructor (which initializes both x and y values to 0) Public constructor (which takes input parameters for x and y values) Public get method for x coordinate Public get method for y coordinate Public set method for x coordinate Public set method for y coordinate Public function that returns the points distance from the origin Square root of (x squared) plus (y squared) Public function that returns the mathematical quadrant in which the coordinate lies For example: (4, -3) would return the value 4 For example: (-5, 1) would return the value 2 If a point is on any axis, return the value 0 NOTE: Make sure you break up the CartesianCoordinate2D class into its header (H) and implementation (CPP) files Take the CartesianCoordinate2D class you just developed and use it in a complete program Create at least one object of this type which demonstrates proper and correct usage of all above functionality NOTE: Your submission here to Blackboard will consist of a ZIP file of your entire project folder, with three separate C++ source code files being contained within it

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!