Question: asap Write a C++ program that performs binary operations with complex numbers stored in one and two dimensional arrays that you will design as a
Write a C++ program that performs binary operations with complex numbers stored in one and two dimensional arrays that you will design as a class. TO DO LIST Create a base class named with myArray. This class has members following #rows columns and data which is an object of complex class. Also this class includes a virtual sort function (not pure virtual that sort complex number objects. Sorting in complex numbers is calculated based on its absolute value. You can find the formula at the end of the file. . So you must create a class that represents complex numbers in math at first. It is up to you how to design. However it must cover basic elements and operations. Overload operator + ...,,>,new function for complex number objects. Derive two subclasses from base myArray class, 10Array and 2DArray.1DArray must represent one-dimensional arrays, 2DArray must represent two-dimensional arrays Write default constructor and constructor with parameters for all classes Overload operator +, -,,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
