₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,944 members, 8,447,838 topics. Date: Sunday, 19 July 2026 at 07:02 AM

Toggle theme

I Need An Urgent Help With A Question In Java. - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingI Need An Urgent Help With A Question In Java. (878 Views)

1 Reply

I Need An Urgent Help With A Question In Java. by joycej(op): 8:32pm On Jan 16, 2011
Complex numbers have the form for performing arithemetic with complex numbers. Write a driver program to test your class.
complex numbers have d form
real part + imaginary part * i

where i is d root of -1
Use floating-point variables to represent the private data of the class. Provide a constructor
method that enables an object of this class to be initialized when it is declared.
Provide a no-argumentment constructor with default values in case no initializers are provided. Provide public methods
for each of the following:
a) Addition of two Complex numbers: The real parts are added together and the imaginary
parts are added together.
b) Subtraction of two Complex numbers: The real part of the right operand is subtracted
from the real part of the left operand and the imaginary part of the right operand is subtracted
from the imaginary part of the left operand.
c) Printing Complex numbers in the form (a,b), where a is the real part and b is the
imaginary part.
1 Reply

Problem With Bufferedinputstream Read Blocking Issue In JavaI Want To Develop A Software In Java To Calculate CGPAHow Do Io Create Ribbon Ui In Java234

Gamers Virtual Machine 1.5 ReleaseRelevance Of .NET MCPD ?Programmers Exprienced In Joomla Plugin Development Needed