C++ program that will model both two-dimensional vectors and complex numbers
Write a C++ program that will model both two-dimensional vectors and complex numbers using derived classes. Start with a base class, Pairs, which should model a pair of floating point numbers and include overloaded addition, subtraction, and is-equal-to operators in addition to appropriate constructors. Then, include two derived classes, Complex and Vect. Both classes will inherit their data from the base Pairs class.
• The Complex class should include overloaded multiplication and division operators in addition to appropriate constructors. It should also include overloaded friend insertion and extraction operators. (Note: You can use the Complex class you wrote for the last assignment and modify it slightly for this assignment.)
• The Vect class should include overloaded multiplication operators in addition to appropriate constructors. Note that it will need two overloaded multiplication operators – one to handle the dot product and a second to handle scalar multiplication. It should also include overloaded friend insertion and extraction operators