# a complex number is a number of the form where

## Project Description:

a complex number is a number of the form where a and b are real numbers and i is √-1. the numbers a and b are known as the real part and imaginary part of the complex number, respectively. you can perform addition, subtraction, multiplication, and division for complex numbers using the following formula:a + bi + c + di = (a + c) + (b + d)ia + bi – (c + di) = (a – c) + (b – d)i(a + bi)*(c + di) = (ac – bd) + (bc + ad)i(a + bi)/(c + di) = (ac + bd)/ (c2 + d2) + (bc – ad)i/(c2 + d2)you can also obtain the absolute value for a complex number using the following formula:|a + bi| = √a2 + b2design a class named complex for representing complex numbers and the methods add, subtract, multiply, divide, and abs for performing complex- number operations, and override the tostring method for returning a string representation for a complex number. the tostring method returns a + bi as a string. if b is 0, it simply returns a.provide three constructors complex(a, b), complex(a), and complex(). complex() creates a complex object for number 0 and complex(a) creates a complex object with 0 for b. also provide the getrealpart() and getimaginarypart() methods for returning the real and imaginary part of the complex number, respectively.write a test program that prompts the user to enter two complex numbers and display the result of their addition, subtraction, multiplication, and division. here is a sample run:enter the first complex number: 3.5 5.5enter the second complex number: -3.5 13.5 + 5.5i + -3.5 + 1.0i = 0.0 + 6.5i3.5 + 5.5i - -3.5 + 1.0i = 7.0 + 4.5i3.5 + 5.5i * -3.5 + 1.0i = -17.75 + -15.75i3.5 + 5.5i / -3.5 + 1.0i = -0.5094 + -1.7i|3.5 + 5.5i| = 6.519202405202649
Skills Required:
Project Stats:

Price Type: Negotiable

Expired
Total Proposals: 6
1 Current viewersl
30 Total views
Project posted by:

### Proposals

Proposals Reputation Price offered
• 4.9
95 Jobs 45 Reviews
\$0 in 0 Day
• 4.6
483 Jobs 294 Reviews
\$0 in 0 Day
• 3.8
30 Jobs 19 Reviews
\$0 in 0 Day
• 3.9
5 Jobs 3 Reviews
\$0 in 0 Day