Question: Given the assignment above. Please help me answer questions 4-9. I need help implementing the shift function as a code. Number 7 and 9 are

 Given the assignment above. Please help me answer questions 4-9. Ineed help implementing the shift function as a code. Number 7 and

Given the assignment above. Please help me answer questions 4-9. I need help implementing the shift function as a code. Number 7 and 9 are short answer questions. Thank you so much. (Language: c++)

Create a Complex class inside Complex.h file. Each complex number has an imaginary and a real part. The only constructor of this class should receive two integers as input A Complex object should not have any setters but should have getters. Create a print function for your Complex class. Create a non-member function complex add for your Complex class, that receives two Complex objects, add them together and returns a Complex object that is the result of the addition. Create complex_sub that does the subtraction. Inside your main receive two integers from the user and create a Complex number out of that; do the same thing to generate the second Complex number. Check to see if these two complex numbers are equal or not? Print the result of addition and subtraction of these two complex number to the user. Create a Complex class inside Complex.h file. Each complex number has an imaginary and a real part. The only constructor of this class should receive two integers as input A Complex object should not have any setters but should have getters. Create a print function for your Complex class. Create a non-member function complex add for your Complex class, that receives two Complex objects, add them together and returns a Complex object that is the result of the addition. Create complex_sub that does the subtraction. Inside your main receive two integers from the user and create a Complex number out of that; do the same thing to generate the second Complex number. Check to see if these two complex numbers are equal or not? Print the result of addition and subtraction of these two complex number to the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!