##### 1

How many bits are required to store a single decimal digit?

Hint AnswerHow many bits are required to store a single decimal digit?

Hint AnswerDevelop an algorithm for adding fixed-width integers in the binary number system.

Hint SolutionDevelop an algorithm for adding fixed-width integers in the hexadecimal number system.

SolutionUsing the answer from Exercise 3.2.1, invent a code for storing two decimal digits in 32 bits. Using this code, does binary addition produce the correct results?

SolutionDevelop an algorithm for subtracting fixed-width integers in the binary number system.

Hint SolutionDevelop an algorithm for adding fixed-width integers in the hexadecimal number system.

Solution