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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started