C++ introductory assignment

Ολοκληρωμένο Αναρτήθηκε Dec 2, 2002 Πληρώθηκε κατά την παράδοση
Ολοκληρωμένο Πληρώθηκε κατά την παράδοση

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 Μηχανολογία MySQL PHP Αρχιτεκτονική Λογισμικού Δοκιμή Λογισμικού

Ταυτότητα Εργασίας: #2888986

Σχετικά με την εργασία

11 προτάσεις Απομακρυσμένη εργασία Ενεργό Dec 2, 2002

Ανατέθηκε στον:

idleswell

See private message.

$10 USD σε 14 μέρες
(175 Αξιολογήσεις)
5.9

11 freelancers κάνουν προσφορές κατά μέσο όρο $11 για αυτή τη δουλειά

cyclonesoftru

See private message.

$6.8 USD σε 14 μέρες
(124 Αξιολογήσεις)
8.2
cinterosystems

See private message.

$12.75 USD σε 14 μέρες
(139 Αξιολογήσεις)
5.6
oztech

See private message.

$11.05 USD σε 14 μέρες
(19 Αξιολογήσεις)
5.0
mstrocan

See private message.

$12.75 USD σε 14 μέρες
(65 Αξιολογήσεις)
4.7
svikvw

See private message.

$17 USD σε 14 μέρες
(14 Αξιολογήσεις)
4.7
emesevw

See private message.

$6.8 USD σε 14 μέρες
(111 Αξιολογήσεις)
4.4
vw450309vw

See private message.

$10.2 USD σε 14 μέρες
(17 Αξιολογήσεις)
3.8
davem2

See private message.

$8.5 USD σε 14 μέρες
(29 Αξιολογήσεις)
3.7
nickyro

See private message.

$6.8 USD σε 14 μέρες
(8 Αξιολογήσεις)
2.3
ndnvw

See private message.

$17 USD σε 14 μέρες
(3 Αξιολογήσεις)
2.1