Question: JAVA. Thank you 1. Exercise 8.11 on Textbook page 324. Create a class called Complex for performing arithmetic with complex number. Complex numbers have the

JAVA.
Thank you
1. Exercise 8.11 on Textbook page 324. Create a class called Complex for performing arithmetic with complex number. Complex numbers have the form realPart + imaginaryParti where iis -1. Write a program to test your class. Use floating-point variables to represent the private data of the class. Provide a constructor that enables an object of this class to be initialized when it's declared. Provide a no-argument constructor with default values in case no initializers are provided. You need to give the add, subtract, and multiple methods, the rules are Hint: If we have two complex numbers, nl=a+b i and n2=c+d i then nl+n2=(ate) + (b+d) i nl-n2=a-c) + (b-d) i nl*n2=(ac-bd) + (ad+bc) i Also a print method of complex number in the form (realPart imaginaryPart). Show a few running results in the word document
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
