Computers and Technology
Computers and Technology, 21.08.2019 18:20, sodaswann

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, Wolfie215
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
image
Computers and Technology, 22.06.2019 09:40, cutybrain6054
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
image
Computers and Technology, 22.06.2019 16:20, mandy9386
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
Do you know the correct answer?
Write a program in java to read in a non-negative integer less than 128 and print out the binary rep...

Questions in other subjects: