Design a class called complex the class enables operations


1) Design a class called Complex. The class enables operations on so called complex numbers. These are numbers of the form realPart + imaginaryPart *i, where the i has the value

2) Design the class to have two private members real and imaginary.

3) Provide a default constructor.

4) Provide a copy constructor.

5) Provide set and get member functions.

6) Overload the + operator to enable add of two complex numbers.

7) Overload the == operators to allow comparisons of complex numbers.

8) Enable input and output of complex numbers through the overloaded >> and << operators.

9) You need to design a class header file, an implementation file and a driver file. The driver file needs to test out each of the member functions completely.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Design a class called complex the class enables operations
Reference No:- TGS01042275

Expected delivery within 24 Hours