[meteor_slideshow slideshow=”arp1″]
Write a class called Complex that represents a complex number and which includes the following:
(a) A constructor for creating a non-zero complex number.
(b) A method called setReal to set the real part of a complex number.
(c) A method called getReal that returns the real part of the complex number.
(d) A method called setImag to set the imaginary part of the complex number.
(e) A method called getImag that returns the imaginary part of the complex number.
(f) A method called getMag that returns the magnitude of the complex number.
(g) A method called printNum to print the complex number onto the screen as in these examples: 5i, 3 + 4i, 7, etc. (h) A method called addNum which accepts an object of class Complex as a parameter, completes the addition of the two complex numbers and returns the sum as an object of class Complex.
(i) A method called multiplyNum which accepts an object of class Complex as a parameter, completes a multiplication of the two complex numbers and returns the product as an object of class Complex.
(j) A main method that tests all of the above.
[meteor_slideshow slideshow=”arp2″]
A-Research-Paper.com is committed to deliver a custom paper/essay which is 100% original and deliver it within the deadline. Place your custom order with us and experience the different; You are guaranteed; value for your money and a premium paper which meets your expectations, 24/7 customer support and communication with your writer. Order Now
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]