C++ introductory assignment

Completed Posted Dec 2, 2002 Paid on delivery
Completed Paid on delivery

Purpose: I'm having difficulty writing and debugging my own programs. I need a working program in Microsoft Visual C ++ 6.0 for the problem below. I prefer it to be written in a basic, or easily followed format. There must be extensive comments that explain why the code is written in such a way, along with descriptions on what is occurring at each point within the program. In all, I would like to be able to fully understand every process. I plan on using your input to enhance my own programming skills. Problem: A complex ("imaginary") number has the form a + bi, where i is the square root of - 1. Here, a is called the real part and b is called the imaginary part. Alternatively, a + bi can be expressed as the ordered pair of real numbers (a,b). Arithmetic operations on two complex numbers (a,b) and (c,d) are as follows: (a,b) + (c,d) = (a+c, b+d) (a,b) - (c,d) = (a-c, b-d) (a,b) * (c,d) = (a * c - b * d, a * d + b * c) (a,b)/(c,d) = ((a*c + b*d)/ (c^2 + d^2), (b*c - a*d)/(c^2 + d^2) ) Also, the absolute value (or magnitude ) of a complex number is defined as: |(a, b)| = the square root of a^2 + b^2 Design, implement, and test a complex number class that represents the real and imaginary parts as double precision values (data type double) and provides at least the following operations: 1. Constructors for explicit as well as default initialization. The default initial value should be (0.0, 0.0). 2. Arithmetic operations that add, subtract, multiply, and divide two complex numbers. These should be implemented as value- returning functions, each returning a class object. 3. A complex absolute value operation. 4. Two observer operations, RealPart and ImagPart, that return the real and imaginary parts of a complex number. Additional information, and the expected result upon executing the code under specified variables is maintained below.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. Deadline : 5th or 6th of December 2002

## Platform

Use the Integer class as the frame for your Complex class. Remember that the addition, subtraction, multiplication and division functions for the Complex class must return an object of type Complex (similar to the Integer class). However, for the absolute function, should return a float value. Solution: For the programming problem, the following complex numbers should be used to test the program for submission: (2, 3) and (-8, 10). Result should be: The value of complex number a: The Real part is: 2 The Imaginary part is: 3 The value of complex number b: The Real part is: -8 The Imaginary part is: 10 Absolute value of a = 3.60555 The addition of a and b results: The Real part is: -6 The Imaginary part is: 13 The subtraction of a and b results: The Real part is: 10 The Imaginary part is: -7 The multiplication of a and b results: The Real part is: -46 The Imaginary part is: -4 The division of a and b results: The Real part is: 0.0853659 The Imaginary part:

## Deadline information

Must be completed on the 5th or by the 6th at the latest.

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2888986

About the project

11 proposals Remote project Active Dec 2, 2002

Awarded to:

idleswell

See private message.

$10 USD in 14 days
(175 Reviews)
5.9

11 freelancers are bidding on average $11 for this job

cyclonesoftru

See private message.

$6.8 USD in 14 days
(124 Reviews)
8.2
cinterosystems

See private message.

$12.75 USD in 14 days
(139 Reviews)
5.6
oztech

See private message.

$11.05 USD in 14 days
(19 Reviews)
5.0
mstrocan

See private message.

$12.75 USD in 14 days
(65 Reviews)
4.7
svikvw

See private message.

$17 USD in 14 days
(14 Reviews)
4.7
emesevw

See private message.

$6.8 USD in 14 days
(111 Reviews)
4.4
vw450309vw

See private message.

$10.2 USD in 14 days
(17 Reviews)
3.8
davem2

See private message.

$8.5 USD in 14 days
(29 Reviews)
3.7
nickyro

See private message.

$6.8 USD in 14 days
(8 Reviews)
2.3
ndnvw

See private message.

$17 USD in 14 days
(3 Reviews)
2.1