/* A Complex number has a real part and an imaginary part */ 
public class Complex {

    private double real, imag;  // Real, imaginary part of a Complex Number
    
    /* This Complex number is a+bi */
    public Complex(double a, double b) {

        // ---------- Implement this method ---------
    }
    
    /* This Complex number has the same real and imaginary parts
     * as Complex number z 
     */ 
    public Complex(Complex z) {

        // ---------- Implement this method ---------
    }
    
    /* This Complex number plus Complex number z */
    public void add(Complex z) {
        real += z.real;
        imag += z.imag;
    }
    
    /* This Complex number subtract Complex number z */
    public void subtract(Complex z) {

        // ---------- Implement this method ---------
    }
    
    /* This Complex number multiply Complex number z */
    public void multiply(Complex z) {

        // ---------- Implement this method ---------
    }
    
    /* This Complex number divided by Complex number z */
    public void dividedBy(Complex z) {

        // ---------- Implement this method ---------
    }
    
    /* = The angle of the this Complex number */
    public double ang() {
      
        // ---------- Implement this method ---------
        return 0;
    }
    
    /* = The magnitude of this Complex number */
    public double mag() {

        // ---------- Implement this method ---------
        return 0;
    }
    
    /* = The String description of this Complex number, ( real + imag i) */
    public String toString() {

        // ---------- Implement this method ---------
        return "";
    }
    
}// class Complex
