Include the class written for exercise 1a in a working c


a. Construct a class named Cartesian containing two doubleprecision data members named x and y, used to store the x and y values of a point in rectangular coordinates. The member functions should include a constructor that initializes an object's x and y values to 0 and functions to input and display an object's x and y values. Additionally, include an assignment function that performs a memberwise assignment between two Cartesian objects.

b. Include the class written for Exercise 1a in a working C++ program that creates and displays the values of two Cartesian objects; the second object is assigned the values of the first object.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Include the class written for exercise 1a in a working c
Reference No:- TGS02197040

Expected delivery within 24 Hours