Question: Assignment 5 1. By using programming language, which you prefer, write a definition of a Complex class for complex numbers. Each object of this class

Assignment 5 1. By using programming language, which you prefer, write a definition of a Complex class for complex numbers. Each object of this class will represent a complex number x+y*j, storing the real part x and the imaginary part y as floats in private section. Include a constructor, a destructor, access functions, assignment functions, a norm() function that returns magnitude of the complex number, an is EqualTo(Complex) function and arithmetic functions plus(Complex), minus(Complex), times(Complex), divideBy(Complex) and print() function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
