Find Jobs
Hire Freelancers

binary dump

$30-5000 USD

Completed
Posted over 22 years ago

$30-5000 USD

Paid on delivery
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.
Project ID: 2827806

About the project

11 proposals
Remote project
Active 23 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$5 USD in 14 days
5.0 (10 reviews)
2.6
2.6
11 freelancers are bidding on average $26 USD for this job
User Avatar
See private message.
$17 USD in 14 days
5.0 (109 reviews)
7.1
7.1
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (80 reviews)
5.2
5.2
User Avatar
See private message.
$17 USD in 14 days
4.9 (40 reviews)
4.8
4.8
User Avatar
See private message.
$68 USD in 14 days
4.6 (60 reviews)
4.5
4.5
User Avatar
See private message.
$25.50 USD in 14 days
4.8 (35 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 14 days
4.9 (3 reviews)
2.2
2.2
User Avatar
See private message.
$21.25 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$42.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$51 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
5
Member since Jan 1, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.