Problem

The plus (+) indicates a more advanced problem, and the asterisk (*) indicates that a solu...

The plus (+) indicates a more advanced problem, and the asterisk (*) indicates that a solution is available on the Companion Website for the text

*Internally in the computer, with few exceptions, all numerical computation is done using binary numbers. Input, however, often uses ASCII, which is formed by appending 011 to the left of a BCD code. Thus, an algorithm that directly converts a BCD integer to a binary integer is very useful. Here is one such algorithm:

1. Draw lines between the 4-bit decades in the BCD number.

2. Move the BCD number one bit to the right.

3. Subtract 0011 from each BCD decade containing a binary value > 0111.

4. Repeat steps 2 and 3 until the leftmost 1 in the BCD number has been moved out of the least significant decade position.

5. Read the binary result to the right of the least significant BCD decade

(a) Execute the algorithm for the BCD number 0111 1000.


(b) Execute the algorithm for the BCD number 0011 1001 0111.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 1