COMP 200 - Assignment #2
COMP 200 - Assignment #2
214)
1. Given our discussion of positional numbering systems in Section 4.2.1, see whether
you can determine the decimal value of the following numbers:
a. 133 (base 4)
133 = (1 × 4 2 ) + (3 × 4 1 ) + (3 × 4 0 )
133 = (1 × 16) + (3 × 4) + (3 × 1)
133 = (16) + (12) + (3)
133 = 31
Thus, the decimal value of 133 in base 4 is 31
b. 367 (base 8)
367 = (3 × 8 2 ) + (6 × 8 1 ) + (7 × 8 0 )
367 = (3 × 64) + (6 × 8) + (7 × 1)
367 = (192) + (48) + (7)
367 = 247
Thus, the decimal value of 367 in base 8 is 247
As an aside, for question #2 (pg. 214), the reason base 16 has letters from A (10) to E (15) is
because the Hindu-Arabic numerals we use today don’t have single digits past 9. As a result, we
use letters to ensure that we only occupy one space (or digit place) in base 16.
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.
Assignment #2 – Chapter 5 (pg. 270)
2. At a minimum, how many binary digits (bits) are needed in the Memory Address
Register (MAR) with each of the following memory sizes?
Schneider, G. M., & Gersting, J. L. (2012). Invitation to Computer Science (6th ed.). Cengage Learning.