Create a ComplexNumber class to perform arithmetic operations with complex numbers in the form realPart + imaginaryPart * i:
double realPart, double imaginaryPart.ComplexNumber(double r = 0.0, double i = 0.0).operator+): (a + bi) + (c + di) = (a + c) + (b + d)ioperator-): (a + bi) - (c + di) = (a - c) + (b - d)ioperator*): (a + bi) * (c + di) = (ac - bd) + (ad + bc)ioperator/): (a + bi) / (c + di) = [(ac + bd)/(c^2 + d^2)] + [(bc - ad)/(c^2 + d^2)]idisplay() const: Prints the formatted complex number (e.g. 5.00 + 1.00i or 3.00 - 5.00i).c1(4.0, 3.0) and c2(1.0, -2.0).c1 + c2, c1 - c2, c1 * c2, and c1 / c2.c1 = 4.00 + 3.00i c2 = 1.00 - 2.00i c1 + c2 = 5.00 + 1.00i c1 - c2 = 3.00 + 5.00i c1 * c2 = 10.00 - 5.00i c1 / c2 = -0.40 + 2.20i [✓] ComplexNumber operator overloading verified (Time: 0.008s, Memory: 2.1 MB)