Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/complex-number-overload-c/
- Create a new multifile project, and create a class to model complex-number, mathematical operations using overloaded operators and add main() test functions to test the operations.
- Create a class for complex numbers that will provide the means to store both the real and the imaginary values of a complex number.
- Design and add overloaded operators to perform correct and complex mathematical operations on objects of the complex-number class.
- Overload the addition operator (+) to perform complex mathmatical addition on two objects of the complex-number class.
- Overload the subtraction operator (-) to perform complex mathmatical subtraction on two objects of the complex-number class.
- Overload the multiplication operator (*) to perform complex mathmatical multiplication on two objects of the complex-number class.
- Overload the division operator (/) to perform complex mathmatical division on two objects of the complex-number class.
- Overload the assignment operator (=) to assign all the data values of an object in the complex-number class to another object in the complex-number class.
- Create at least three objects of the complex-number class in function main() and use them to perform the following operation tests.
- Demonstrate the correct operation of the complex addition overloaded operator.
- Demonstrate the correct operation of the complex subtraction overloaded operator.
- Demonstrate the correct operation of the complex division overloaded operator.
- Demonstrate the correct operation of the complex multiplication overloaded operator.
- Download: http://solutionzip.com/downloads/complex-number-overload-c/
Advertisement
Add Comment
Please, Sign In to add comment