Question: You are required to write a C++ program that would perform calculations on complex numbers. A complex number is a number of the form a


You are required to write a C++ program that would perform calculations on complex numbers. A complex number is a number of the form a + bi, where a and b are real numbers, and i is an indeterminate satisfying i2=1. For example, 2+3i is a complex number. You can read more about complex numbers at this link . You are required to perform the following tasks: - Create a class with at least followings: - Private data members - Corresponding Getters and Setters along with a Default Constructor and a parameterized constructor. - Overload the + operator using member function (should be overloaded inside the class) for adding two complex numbers. Function for overloading this operator should have this signature: Complex operator+(Complex\& operand) - Overload the - operator using member function (should be overloaded inside the class) for subtracting two complex numbers. Function for overloading this operator should have this signature: - Overload the * operator using member function (should be overloaded inside the class) for multiplying two complex numbers. Function for overloading this operator should have this signature: Complex operator*(Complex\& operand) - Overload the == operator using member function (should be overloaded inside the class) for checking the equivalence of two complex numbers. Function for overloading this operator should have this signature: - You should also overload
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
