Question: 2) Implement a complex number object having multiply, divide, add, and subtract operations via the definitions: (a+b)+(x+y) = (a+x) + (b+y), (a+b ) - (x+y)
2) Implement a complex number object having multiply, divide, add, and subtract operations via the definitions: (a+b)+(x+y) = (a+x) + (b+y), (a+b ) - (x+y) (a-x)+(b-y), (a+b)(x+y) = (a*x-b+y)+(a*y+b*x) (a+b)/(x+y) = ((a+b)*(x-y.)/(x+y) Prove that your object functions correctly via a stub program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
