The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Needs to be done in C++
Â

Show transcribed image text Declare and define a class for a complex number. A complex number in mathematics is defined as x+yi, where x defines the real part of the number and y is the imaginary part. Requirements ? The complex number class should include a constructor. Use default arguments in a general constructor that implements a default constructor. ? Use operator overloading to define the following operations for the complex number class: Input : > > Output: <>< sum:="" +="" difference:="" -="" product:="" *="" quotient:="" the="" formulas="" for="" arithmetic="" operations="" on="" complex="" numbers="" are="" add:="" subtraction:="" multiplication="" division:="" define="" input="" and="" output="" as="" the="" friend="" functions="" of="" the="" class="" complex="" number.="" the="" other="" arithmetic="" operations="" are="" defined="" as="" non-member="" functions.="" following="" the="" example="" of="" the="" point="" class="" for="" all="" the="" documentation.="" write="" and="" document="" the="" class="" in="" header="" and="" implementation="" files,="" and="" compile="" it="" separately="" from="" the="" client="" program.="" write="" a="" program="" that="" performs="" all="" the="" operations="" defined="" above.="" examples="" a="" mil="" of="" the="" program="" might="" look="" like="" this:="">
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll