1. Design a safe array for complex numbers. The complex class that we have discussed in this chapter should be used as an array element. The program must fl ag an error when the user tries to refer to an array element outside the boundary.
2. Add two variables UpperBound and LowerBound to the Integer class defi ned in Program 6.13. Also, add a function Validate() to the same class such that when that function is called, it checks to see if the value is between the upper and lower bounds. Overload () operator for the Integer class such that the code Integer Int1; int int1; Integer (int1).Validate() works properly, that is, it casts int to Integer object.