Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Experience the ease of finding quick and accurate answers to your questions from professionals on our platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

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.