Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

OBJP4 Self-Check 1.2: binary1
Language/Type:
Author:
Java basics binary numbers
Marty Stepp (on 2016/09/08)
Convert each of the following decimal numbers into its equivalent binary number:
6
44
72
131


Sagot :

tonb

Answer:

6 = 0110

44 = 101100

72 = 1001000

131 = 10000011

Explanation:

You can use the windows calculator in programmer mode to make this conversion easily.

If you want to do it by hand, here's one way to do it.

1. Write from right to left.

2. If your number is even, write down a 0.

3. If your number is odd, write down a 1 and subtract 1 from it.

4. Divide your number by 2.

5. If number not 0, go to step 2.