Binary Journal 03 Reverse Dec

advertisement
3rd Binary Journal for: 03 Reverse Decimal-Binary.xls
1.
Explain what each of the two programs on the original (1st) worksheet does.
2.
Write down the Subtraction Algorithm for converting a Decimal Number (0-255) to an
8-digit Binary Number. Number your steps and limit the number of sentences for each
step to one or two.
3.
Explain how you constructed the Binary-Subtract worksheet, with details how each
formula helps to implement the Subtraction Algorithm you described in question 2.
4.
As we learned in the 02 Column Bits worksheet, the Shift-Right operation shifts the
digits of a number to the right when you divide by powers of the Base. In Decimal you
divide by powers of 10; in Binary you divide by powers of 2. The number of placeholder
columns moved is equal to the power (value of the exponent).
The first program extracts the digits from a 6-digit decimal number.
Explain how the Shift-Right operation in combination with the Modulus function (MOD)
can be used to both:
(a) extract any digit from a Decimal number, and
(b) determine from which placeholder column it came.
5.
Explain how – in the Shift-Right worksheet – you constructed the first program.
Include details how each formula helps to implement the Shift-Right / MOD combination
Algorithm you described in question 4.
Then describe how you constructed the second program – which converts a Decimal
Number (0-255) to a Binary Number (by calculating its Binary Digits) – by cloning the
first program. Describe what changes you made after you copied the first program.
6.
Explain WHY – with only minor changes – the same Shift-Right / MOD combination
algorithm seems to do two very different things:
(a) It extracts decimal digits from a decimal number; and
(b) It converts a decimal number (0-255) to a binary number (by calculating its BINARY
digits).
03 Reverse Decimal-Binary.xls
Download