subject

Write a program in java to read in a non-negative integer less than 128 and print out the binary representation. use a method header like this: public static string inttobin(int x)
* ok so i need to be able to read in an integer and print out the binary representation as a string.
*also need a loop that does 18%2 = 0 18/2=9 9%2=1 9/2=4 4%2=0 4/2=2 2%2=0 2/2=1 ect..

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
You know the right answer?
Write a program in java to read in a non-negative integer less than 128 and print out the binary rep...
Questions
question
Mathematics, 26.08.2019 00:30
question
Social Studies, 26.08.2019 00:30
question
World Languages, 26.08.2019 00:30
question
Mathematics, 26.08.2019 00:30
Questions on the website: 13722361