Question: Coding in C++ Additional files are:- complexInput.txt (3+4i) * (5-6i) complexOutput.txt 39+2i complexInputWrong.txt (3+4i) - dummy USE COMPLEX.H, COMPLEX.CPP AND MAIN.CPP What you will learn
Coding in C++
Additional files are:-
complexInput.txt (3+4i) * (5-6i)
complexOutput.txt 39+2i
complexInputWrong.txt (3+4i) - dummy
USE COMPLEX.H, COMPLEX.CPP AND MAIN.CPP

What you will learn Implementing classes .File I/O More operator overloading .Error checking Coding exercise Create a class called complexNumber that stores a complex number of the form a+bi, where i is v-I. a is the real and b is the imaginary part of the number1. You should be able to get the real and imaginary parts of the number. a and b can be negative, e.g., "3+4i", "-3+4i", "3-41", and "-3- 4i" 1. 2. Implement the ability to add, subtract, and multiply two complexNumber objects and save the 3. Overload the operator>and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
