Question: Suppose we want to devise a binary code to represent the fuel levels in a car: a. If we need to describe only the possible

Suppose we want to devise a binary code to represent the fuel levels in a car:

a. If we need to describe only the possible levels (empty, 1/4 full, 1/2 full, 3/4 full, and full), how many bits are needed?

b. Give one possible binary code that describes the levels in (a).

c. If we need to describe the levels (empty, 1/8 full, 1/4 full, 3/8 full, 1/2 full, 5/8 full, 3/4 full, 7/8 full, and full), how many bits would be needed?

d. If we used an 8-bit code, how many levels could we represent?

Step by Step Solution

3.33 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a To describe only 5 possible levels empty 14 full 12 full 34 full and full we would need 3 bits ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Exploring Engineering Introduction Questions!