Results 1 to 3 of 3
- 09-13-2013, 08:05 PM #1
Member
- Join Date
- Jul 2013
- Posts
- 2
- Rep Power
- 0
Display both the original integer and the binary output
I'm a beginner in java and I need help with this.
- Prompt the user for a positive integer less than 100.
- Convert the integer into its binary representation, you MUST hard code the solution with your own algorithm with loop NOT using the java buit-in method such as: Integer.toBinaryString(int ).
- Display both the original integer and the binary output.
- 09-13-2013, 08:23 PM #2
Re: Display both the original integer and the binary output
I've given you this link before, but you probably never bothered to return to that thread so here it is again: How to ask questions the smart way
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 09-13-2013, 08:35 PM #3
Re: Display both the original integer and the binary output
First I would suggest working through this on paper or something similar. Think about the steps you would take to convert any given integer to its binary representation. Once you see the steps you would use by hand, then it will be a lot easier to convert it to java code. If you get stuck on actual java code, then come back and we can help you with that
Similar Threads
-
Convert integer to binary then each binary character to boolean
By davidfla90 in forum New To JavaReplies: 1Last Post: 11-01-2011, 06:35 PM -
convert integer to binary
By leepikamukharji in forum New To JavaReplies: 2Last Post: 04-30-2011, 05:19 AM -
How to Print every tenth integer in my output
By jim01 in forum New To JavaReplies: 13Last Post: 04-16-2011, 04:00 AM -
Help with Binary recursive method to find the largest integer
By flyingcurry in forum New To JavaReplies: 12Last Post: 10-31-2010, 07:14 PM
Bookmarks