Show Bid Request
C++ introductory assignment
Bid Request Id: 38018
|
|
|
Posted by: |
NA4 (1 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Posted: |
Dec 2, 2002 5:48:36 PM EDT
|
Bidding Closes: |
Dec 5, 2002 6:12:16 PM EDT
|
Viewed (by coders): |
183 times
|
Deadline: |
12/6/2002
TIME EXPIRED
|
|
|
|
Description:
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:
Must be 100% finished and received by buyer on:
Dec 6, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Must be completed on the 5th or by the 6th at the latest.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$13 (USD)
|
Dec 2, 2002 6:24:14 PM EDT
|
9.74
(Excellent)
|
|
|
Hello,
I will implement your C++ class
representing complex numbers
within a day.
Your code will be straightforward,
intelligible and well-documented.
A IDLER
Chief Software Architect
Idleswell Software Creations
|
|
|
|
|
|