Question: write a c++ code that implements union structure enumration amd use cout and cin instead of print & scan. thanks Exercise Define a structure named

write a c++ code that implements union structure enumration amd use cout and cin instead of print & scan. thanks
write a c++ code that implements union structure enumration amd use cout

Exercise Define a structure named Complex for representing complex numbers. A complex number has the general form a + ib(in Cartesian coordinate) Write a complete program that process complex number. The program the following menu structure. Use enumeration for the menu. 1. Input : accepts a complex number from user 2. Real: returns real of a complex number 3. Imaginary: returns the imaginary of a complex number 4. Conjugate: determines the conjugate of a complex number 5. Add: adds two complex number 6. Subtract: subtract one complex from another 7. Multiply: multiply two complex number 8. Divide: divides one complex by another 9. Modulus: calculates the magnitude of a complex number 10. Display: display a complex number on the screen 11. Exit: exit application

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!