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.
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
db
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