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, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
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
History, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Social Studies, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
question
Mathematics, 16.04.2021 19:30
Questions on the website: 13722362