Show Bid Request
binary dump
Bid Request Id: 2822
|
|
|
Description:
The basic idea is to create a function that will do a binary dump of an integer. The exact nature of the output is not specified so you can place the digits consecutively, or with space separators.
In addition to doing the dump, you must write two methods for finding the value of the i'th bit of an integer.
Here are the methods you need, but you can vary the names: int findBit(int i,index j) /* this method outputs the value of the j'th bit of integer value i, where j is between 0 and 31, and where the zero bit is the rightmost bit (least significant); the function can optionally return a boolean value; you must use shifts to implement this function */
int findBit2(int i,index j) /* same as findBit, but you must use a mask to find the bit, and one of the bit operations &, |, ^ */
void bdump(int i) /* binary dump of integer i ; use one of the methods above to do the dump */
You can place hard coded tests in your main method, or obtain data interactively. Randomly generated integers do not lend themselves to easy human verification that your dump is correct. So your tests should include values that are easily checked. For example an integer initialized with a hex specified constant is easy to check.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
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!
|
$8 (USD)
|
Sep 21, 2001 4:29:29 AM EDT
|
9.1
(Superb)
|
|
|
I have implemented the class and tested it thoroughly. If you wish I can send you the compiled file and if you are satisfied, then only accept the bid. Just send me a private email asap.
Regards. |
|
|
|
|
|