C++ introductory assignment

Completado Publicado Dec 2, 2002 Pagado a la entrega
Completado Pagado a la entrega

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.

Programación en C Ingeniería MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #2888986

Sobre el proyecto

11 propuestas Proyecto remoto Activo Dec 2, 2002

Adjudicado a:

idleswell

See private message.

$10 USD en 14 días
(175 comentarios)
5.9

11 freelancers están ofertando un promedio de $11 por este trabajo

cyclonesoftru

See private message.

$6.8 USD en 14 días
(124 comentarios)
8.2
cinterosystems

See private message.

$12.75 USD en 14 días
(139 comentarios)
5.6
oztech

See private message.

$11.05 USD en 14 días
(19 comentarios)
5.0
mstrocan

See private message.

$12.75 USD en 14 días
(65 comentarios)
4.7
svikvw

See private message.

$17 USD en 14 días
(14 comentarios)
4.7
emesevw

See private message.

$6.8 USD en 14 días
(111 comentarios)
4.4
vw450309vw

See private message.

$10.2 USD en 14 días
(17 comentarios)
3.8
davem2

See private message.

$8.5 USD en 14 días
(29 comentarios)
3.7
nickyro

See private message.

$6.8 USD en 14 días
(8 comentarios)
2.3
ndnvw

See private message.

$17 USD en 14 días
(3 comentarios)
2.1