Question: PART 2 Problem Description: Declare and define a class for a complex number. A complex number in mathematics is defined as x+yi, where x defines

PART 2

Problem Description: Declare and define a class for a complex number. A complex number in mathematics is defined as x+yi, where x defines the real part of the number and y is the imaginary part Requirements Part l Define a complex class that has the following member functions o constructor that initializes the complex number by default arguments o set function that sets the real part of the complex number o set function that sets the imaginary part of the complex number o get function that returns the real part of the complex number o get function that returns the imaginary part of the complex number o a function that displays the complex number Write the class in header and implementation files, and compile it separately from the client program. Document the class following the example of the point class Write a test program to show all your member functions work before you move to Part2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
