486,255 views
23 votes
23 votes
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

User TimE
by
3.2k points

1 Answer

12 votes
12 votes

Answer:

6 = 0110

44 = 101100

72 = 1001000

131 = 10000011

Step-by-step 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.

User RKRK
by
3.2k points