Question

Convert the following decimal numbers to 8-bit binary form:        254         255         192        ...

  1. Convert the following decimal numbers to 8-bit binary form:
  1.        254
  1.         255
  1.         192
  1.         28
  1.         145
0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION:-

(a) 254

( 254 )10 = ( 11111110 )2

Explanation:-

Step 1: We will write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

254   /   2   result   127   remainder   0
127   /   2   result   63 remainder   1
63   /   2 result   31   remainder   1
31   /   2 result   15   remainder   1
15   /   2 result   7   remainder   1
7   /   2 result   3   remainder   1
3   /   2 result   1   remainder   1
1   /   2 result   0   remainder   1

Step 2: Now we will read the remainders from bottom to top.

(b) 255

( 255 )10 = ( 11111111 )2

Explanation:-

Step 1: We will write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

255   /   2   result   127   remainder   1
127   /   2   result 63 remainder   1
63   /   2   result 31 remainder   1
31   /   2   result 15 remainder   1
15   /   2   result 7 remainder   1
7   /   2   result 3 remainder   1
3   /   2   result 1 remainder   1
1   /   2   result 0 remainder   1

Step 2: Now we will read the remainders from bottom to top.

(c) 192

( 192 )10 = ( 11000000 )2

Explanation:-

Step 1: We will write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

192   /   2   result   96   remainder   0
96   /   2   result 48   remainder   0
48   /   2   result 24   remainder   0
24   /   2   result 12   remainder   0
12   /   2   result 6 remainder   0
6   /   2   result 3 remainder   0
3   /   2   result 1 remainder   1
1   /   2   result 0 remainder   1

Step 2: Now we will read the remainders from bottom to top.

(d) 28

( 28 )10 = ( 11100 )2 = ( 00011100 )2 ( We have added three 0's to make it a 8-bit binary number)  

Explanation:-

Step 1: We will write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

28   /   2   result   14   remainder   0
14   /   2   result 7 remainder   0
7   /   2   result 3 remainder   1
3   /   2   result 1 remainder   1
1   /   2   result 0 remainder   1

Step 2: Now we will read the remainders from bottom to top.

(e) 145

( 145 )10 = ( 10010001 )2

Explanation:-

Step 1: We will write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

145   /   2   result   72   remainder   1
72   /   2   result 36   remainder   0
36   /   2   result 18   remainder   0
18   /   2   result 9 remainder   0
9   /   2   result 4 remainder   1
4   /   2   result 2 remainder   0
2   /   2   result 1 remainder   0
1   /   2   result 0 remainder   1

Step 2: Now we will read the remainders from bottom to top.

==============================================================================

Add a comment
Know the answer?
Add Answer to:
Convert the following decimal numbers to 8-bit binary form:        254         255         192        ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT