Write C Defining Class Complex Numbers Complex Number Number Form B Purposes B Numbers Typ Q37124394

Write a C++ defining a class for complex numbers. A complexnumber is a number of the form: , a+b∗i where, for our purposes, aand b are numbers of type double, and i is a number that representsthe quantity root of −1. You should represent a complex number hereas two values of type double. You should name the variables realand imaginary. You can call the class Complex. You should include aconstructor with two parameters of type double that can be used toset the member variables of an object to any values. You can alsoinclude a default constructor that initializes the object

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.