Question: IN 3 DIFFERENT FILES: MAIN.CPP, COMPLEX.H & COMPLEX.CPP. USE WHILE, CASE & ARRAY OF NECESSARY. We will create a class of Complex. First design the

IN 3 DIFFERENT FILES: MAIN.CPP, COMPLEX.H & COMPLEX.CPP. USE WHILE, CASE & ARRAY OF NECESSARY. We will create a class of Complex. First design the class diagram for a Complex. Create a class named Complex Private attributes are real and img of type double. Make the 3 constructos: default, parameter, and copy Also, make the getters and setters. Create a Main Menu: Add two complex numbers Subtract two complex numbers Multiply two complex numbers Exit All class functions should be well defined in the scope of this lab. Use operator overloading for the arithmetic operations in the Complex class. Also, implements friend for cout and cin.

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 Programming Questions!