Create a class called CComplex for performing arithmetic with complex numbers. Write a program to test your class. Complex numbers have the form
realPart + imaginaryPart × I
where i is
Use floating-point subtypes to represent the Private data of the class. Provide Public methods for each of the following:
a) Addition of two CComplex numbers: The real parts are added together and the imaginary parts are added together.
b) Subtraction of two CComplex numbers: The real part of the right operand is subtracted from the real part of the left
operand and the imaginary part of the right operand is subtracted from the imaginary part of the left operand.
c) Printing CComplex numbers in the form (A, B), where A is the real part and B is the imaginary part.
```
1
2
3
4
5
6
7
A ____________, is an object associated with a specific file and provides a way for the program to work with that file.
a. data object b. file object c. Filename class d. referential extension
Write out the state while being sorted using the insertion sort algorithm:
What will be an ideal response? ``` 91 6 3 55 110 8 1 703 ```
Write an inheritance hierarchy for class Quadrilateral, Trapezoid, Parallelo- gram, Rectangle and Square. Use Quadrilateral as the base class of the hierarchy. Make the hierarchy as deep (i.e., as many levels) as possible. The data of Quadrilateral should be the (x, y) coordinate pairs for the four endpoints of the Quadrilateral. Write a driver program that creates and displays objects of each
of these classes. What will be an ideal response?