Question: Instruction: The following source codes have been created to implement the Complx class that will be use to create an arithmetic of complex numbers. The

Instruction: The following source codes have been created to implement the Complx class that will be use to create an arithmetic of complex numbers. The coast class of two files: Complx.cpp where the functions of the class and the header file Complx.h are already implemented. There is another file, main.cpp The client file or main. cpp creates three complex numbers and makes a sum. However, the programmer had to emigrate and did not complete everything he needed.
Its objective is to finish the arithmetic functionality of the class implementing the following:
1. Implement the operation subtraction and multiplication.
2. Implement the conjugate operation that will change the sign to the private variable that saves the inaginary part.
3. Implement the conversion of rectangular to polar coordinates.
2.1 To do this you must add to private variables: mag and pha "Magnitude and phase" respectively.
2.2 The phase should be in degrees.
2.3 Don't forget to include the mathematical livrary for sqrt, pow and the arc tangent.
4. Implement a function that will print the complex number in polar form.
Instruction: The following source codes have been created to implement the Complx
class that will be use to create an arithmetic of complex numbers.

man PP complicap theach #include "Complx.h" #include using namespace std; Complx:: Complx () { //default constructor real = 1; imag - 0; cout #include "complx.h" using namespace std; main.cop complc.cpp compbch x tifndef COMPLX H #define COMPLX H class Complx 6 public: Complx(); Complx (float re, float im) Complx(); void sum (Complx 6a, Complx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!