akosiraff

Complex Number Overload C++

Mar 5th, 2013
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. Download: http://solutionzip.com/downloads/complex-number-overload-c/
  2.  
  3. 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.
  4. Create a class for complex numbers that will provide the means to store both the real and the imaginary values of a complex number.
  5. Design and add overloaded operators to perform correct and complex mathematical operations on objects of the complex-number class.
  6. Overload the addition operator (+) to perform complex mathmatical addition on two objects of the complex-number class.
  7. Overload the subtraction operator (-) to perform complex mathmatical subtraction on two objects of the complex-number class.
  8. Overload the multiplication operator (*) to perform complex mathmatical multiplication on two objects of the complex-number class.
  9. Overload the division operator (/) to perform complex mathmatical division on two objects of the complex-number class.
  10. 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.
  11. Create at least three objects of the complex-number class in function main() and use them to perform the following operation tests.
  12. Demonstrate the correct operation of the complex addition overloaded operator.
  13. Demonstrate the correct operation of the complex subtraction overloaded operator.
  14. Demonstrate the correct operation of the complex division overloaded operator.
  15. Demonstrate the correct operation of the complex multiplication overloaded operator.
  16.  
  17. Download: http://solutionzip.com/downloads/complex-number-overload-c/
Advertisement
Add Comment
Please, Sign In to add comment