Question: a. Instantiate two complex number objects based on the complex class provided above. The first number is 4+4i and the second number is 4 -

a. Instantiate two complex number objects based on the complex class provided above. The first number is 4+4i and the second number is 4 - 4i. You do not need to write C++ code to read the inputs from method. . You can just directly assign them using the appropriate b. The method print() has been defined in the class above though it has not been elaborated. Write the function print() which will be able to print complex numbers in a human readable form. For example, if the complex number is 4+4i, the print() method should print something like "The complex number is 4+4i ". c.. The functions sum, sub, mit and div have been defined in the class above - these respectively are functions to perform the addition, subtraction, multiplication and division of two complex numbers. Write the necessary C++ code to implement any two functions - the only condition is that you cannot select both the sum and sub function here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
