subject

Write a Java program that prompts for integers and displays them in binary. Sample output:Do you want to start(Y/N): yEnter an integer and I will convert it to binary code: 16Youentered 16.16 in binaryis10000.Do you want to continue(Y/N): yEnter an integer and I will convert it to binary code: 123Youentered 123.123 in binaryis1111011.Do you want to continue(Y/N): yEnter an integer and I will convert it to binary code: 359Youentered 359.359 in binaryis101100111.Do you want to continue(Y/N): yEnter an integer and I will convert it to binary code: 1024Youentered 1024.1024 in binary is 10000000000.Do you want to continue(Y/N): n

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, araminaara691
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
image
Computers and Technology, 22.06.2019 12:40, Courtneymorris19
The most complicated four letter word
Answers: 1
image
Computers and Technology, 22.06.2019 17:40, math31343
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
You know the right answer?
Write a Java program that prompts for integers and displays them in binary. Sample output:Do you wan...

Questions in other subjects:

Konu
Social Studies, 28.09.2019 12:50
Konu
Mathematics, 28.09.2019 12:50