Home /
Expert Answers /
Computer Science /
c-please-three-doubles-are-read-from-input-where-the-first-two-doubles-are-the-real-and-imaginar-pa704
(Solved): c++ please Three doubles are read from input, where the first two doubles are the real and imaginar ...
c++ please
Three doubles are read from input, where the first two doubles are the real and imaginary parts of complexNumber1 and the third double is a constant. Complete the function to overload the / operator. Ex. If the input is 15.012.54.5, then the output is: (15+12.5i)/4.5=3.33333+2.77778i Note: - The quotient of a complex number and an integer representing the real part of the complex number, (34+36i)/16, is: - the quotient of the real part of the complex number and the integer, (34/16) - the quotient of the imaginary part of the complex number and the integer, (36i / 16) Thus, the quotient is 2+2i. The same operation also works for doubles.
1 2 3