Project 88: Other Complex Operations

Other Complex Number Operations:

For the examples below Z is the first complex number:  Z = 3-7i.  W is the second complex number: W = 1 + 2i

Project 88: The variables 'real1', 'imag1', 'real2', 'imag2' have been initialized.

real1 is the real part of the first imaginary number (3 in the example above)

imag1 is the imaginary part of the first imaginary number (-7 in the example above)

real2 is the real part of the second imaginary number (1 in the example above)

imag2 is the imaginary part of the second imaginary number (-2 in the example above)

Task:  Appropriately initialize the variables 'sumReal', 'sumImag', 'difReal', 'difImag', 'quoReal', 'quoImag' that correspond to the real and imaginary parts for the sum, difference, and quotient for the complex numbers given.

**If your code works for 5 test cases, you can enter your e-mail address

Universal Computational Math Methods:

pow(5,2) returns 25.0

abs(-3.0) returns 3

sqrt(49.0) returns 7.0