C++ introductory assignment

Selesai Dipasang Dec 2, 2002 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

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.

Pemrograman C Teknik MySQL PHP Perancangan Perangkat Lunak Pengujian Perangkat Lunak

ID Proyek: #2888986

Tentang proyek

11 proposal Proyek online Aktif Dec 2, 2002

Diberikan kepada:

idleswell

See private message.

$10 USD dalam 14 hari
(175 Ulasan)
5.9

11 freelancer rata-rata menawar $11 untuk pekerjaan ini

cyclonesoftru

See private message.

$6.8 USD dalam 14 hari
(124 Ulasan)
8.2
cinterosystems

See private message.

$12.75 USD dalam 14 hari
(139 Ulasan)
5.6
oztech

See private message.

$11.05 USD dalam 14 hari
(19 Ulasan)
5.0
mstrocan

See private message.

$12.75 USD dalam 14 hari
(65 Ulasan)
4.7
svikvw

See private message.

$17 USD dalam 14 hari
(14 Ulasan)
4.7
emesevw

See private message.

$6.8 USD dalam 14 hari
(111 Ulasan)
4.4
vw450309vw

See private message.

$10.2 USD dalam 14 hari
(17 Ulasan)
3.8
davem2

See private message.

$8.5 USD dalam 14 hari
(29 Ulasan)
3.7
nickyro

See private message.

$6.8 USD dalam 14 hari
(8 Ulasan)
2.3
ndnvw

See private message.

$17 USD dalam 14 hari
(3 Ulasan)
2.1