Factory of Complex Numbers A complex number can be expressed in the form of either a…

Factory of Complex Numbers A complex number can be expressed in the form of either a vector (x, y) or a polar (r.)! a) Design and implement a factory that can be used to create instances of complex numbers where some clients would heavily manipulate the complex number in the vector form while other clients would heavily manipulate the complex number in the polar form b) Draw the class model of your program. c) Design and implement four test cases to validate your program d) Comment on the maintainability and performance of your design. [1] Consider the following simplified conversions: r=sqrt(x2+y?), q=arctan(y/x),x=r cos(Q), y=r sin() in java please