Question: Java Eclipse:- Submit 2 files : the .java file that defines the object - ComplexNumber.java the usage file - ComplexNumberUsage.java(or something similar) complex number has
Java Eclipse:-
Submit 2 files :
the .java file that defines the object - ComplexNumber.java
the usage file - ComplexNumberUsage.java(or something similar)
complex number has 2 parts
real number
imaginary number
addition of 2 complex numbers cn1, cn2
cn1's real part + cn2's real part
cn1's imaginary part + cn2's imaginary part
subtraction of 2 complex numbers cn1, cn2
cn1's real part - cn2's real part
cn1's imaginary part - cn2's imaginary part
multiplication of 2 complex numbers
( (cn1's real part cn2's real part) - (cn1's imaginary part cn2's imaginary part) ) +
( (cn1's real part cn2's imaginary part) + (cn1's imaginary part cn2's real part) )
2 complex numbers : (a+ib) & (c+id)
addition : ( (a+c) + i(b+d) )
subtraction : ( (a-c) + i(b-d) )
multiplication : ( (ac-bd) + i(ad+bc) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
