Homework Solution: number of complex numbers in the form of a+bi (e.g. 3+5i 2-3i etc)….

Read in a file (complex.txt) which has a number of complex numbers in the form of a+bi (e.g. 3+5i 2-3i etc). Create a complex class to store data Input each line in complex.txt(one complex object per line) Output all complex objects to an output file named "complexObj.txt" Compute sum of all complex objects by overloading + operator and save value into result object Append the result object to the end of "complexObj.txt" containing: main.cpp complex.cpp complex.h

1. Reading complex numbers from a file :

Read in a perfect (complex.txt) which has a number of multifarious mass in the arrange of a+bi (e.g. 3+5i 2-3i foreseeing).

Create a multifarious tabulate to fund data

Input each sequence in multifarious.txt(undivided multifarious intent per sequence)

Output entire multifarious intents to an output perfect denominated “complexObj.txt”

Compute sum of entire multifarious intents by overloading + operator and prevent compute into termination intent

Append the termination intent to the purpose of “complexObj.txt”

containing:

main.cpp

complex.cpp

complex.h

Expert Vindication

1. Reading multifarious mass from a perfect :

2. For Sum exercise aftercited logic can be implemented

re_sum[i]==re[i]+re[i+1]];

img_sum[i]==img[i]+img[i+1];