13.2 > for input and output streamsare overloaded. Your testing program (testComplex.cpp) should read two complex numbersfrom the files called in1.txt and in2.txt, then compute their sum, the...

13.2Language: C++<br>Adapt and extend your previous source code for working with complex numbers (Complex.h,<br>Complex.cpp and testComplex.cpp) such that the operators + for adding, - for subtracting,<br>* for multiplying two complex numbers, = for assigning, << and >> for input and output streams<br>are overloaded. Your testing program (testComplex.cpp) should read two complex numbers<br>from the files called in1.txt and in2.txt, then compute their sum, the difference and the<br>product, and print the results on the screen as well as into a file called output.txt. You have<br>the freedom to set the structure of the input files.<br>You can assume that the input of the testing program will be valid and the necessary input files<br>have a valid content if existing.<br>

Extracted text: Language: C++ Adapt and extend your previous source code for working with complex numbers (Complex.h, Complex.cpp and testComplex.cpp) such that the operators + for adding, - for subtracting, * for multiplying two complex numbers, = for assigning, < and="">> for input and output streams are overloaded. Your testing program (testComplex.cpp) should read two complex numbers from the files called in1.txt and in2.txt, then compute their sum, the difference and the product, and print the results on the screen as well as into a file called output.txt. You have the freedom to set the structure of the input files. You can assume that the input of the testing program will be valid and the necessary input files have a valid content if existing.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here