47.0k views
1 vote
Given that the following is a series of 8 LED lights Ω Ω Ω Ω Ω Ω Ω Ω And Convert 128 from decimal to an 8 bit binary representation by selecting all the lights that would be lit (on).

User Zajke
by
7.1k points

1 Answer

2 votes

Answer:

To convert 128 from decimal to an 8-bit binary representation, we can use the method of successive division by 2.

128 / 2 = 64 with a remainder of 0

64 / 2 = 32 with a remainder of 0

32 / 2 = 16 with a remainder of 0

16 / 2 = 8 with a remainder of 0

8 / 2 = 4 with a remainder of 0

4 / 2 = 2 with a remainder of 0

2 / 2 = 1 with a remainder of 0

1 / 2 = 0 with a remainder of 1

Therefore, the 8-bit binary representation of 128 is: 10000000

This can be represented by lighting up the first LED light and keeping the other 7 lights off.

User Marouane Afroukh
by
7.7k points