(Complex Class) Consider class Complex shown in Fig 1-3. The class enables operations on so-called complex numbers. These are numbers of the form real Part + imaginary Part * i, where i has the value
a) Modify the class to enable input and output of complex numbers via overloaded >> and <
b) Overload the multiplication operator to enable multiplication of two complex numbers as in algebra.
c) Overload the == and != operators to allow comparisons of complex numbers.
After doing this exercise, you might want to read about the Standard Library’s complex class (from header
Fig 1. Complex class definition.

Fig 2. Complex class member-function definitions. (Part 1 of 2.)

Fig 2. Complex class member-function definitions. (Part 2 of 2.)

Fig 3. Complex class test program. (Part 1 of 2.)

Fig 3. Complex class test program. (Part 2 of 2.)

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.