1. Engineering
  2. Computer Science
  3. 3 6 pts internally in the computer with few exceptions...

Question: 3 6 pts internally in the computer with few exceptions...

Question details

3. (6 pts) Internally in the computer, with few exceptions, all numerical computation is done using binary numbers. Output, however, often uses ASCII, which is formed by appending 011 to the left of a BCD code. Thus, an algorithm that directly converts a binary integer to a BCD integer is very useful. Here is one such algorithm 1) Draw lines to the left of the binary number to bound the expected BCD decades. (Each decade is a group of 4 bits.) Move the binary number one bit to the left. Add 0011 to each BCD decade containing a binary value> 0100 Repeat Steps 2-3 until the last bit in the binary number has been moved into the least significant decade position. (Note that when the last bit has been shifted into BCD decade, Step 3 is not repeated.) Read the BCD result. 2) 3) 4) 5) a) Execute the algorithm for the binary number 1101101 b) Execute the algorithm for the binary number 01110101110 4. (4 pts) Represent the decimal number 3568 in BCD; excess-3 code; ASCIl; and hex.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution