Worksheet 2

advertisement
COMP.2030
Worksheet 2 (Number System)
1/25/2016
1. What are the numbers in given bases of the following decimal values ?
a. 43 to base 2
b. 43 in base 8
d. 43 in base 16
2. What strategy will you use to cover decimal 5,627 to its corresponding is the
binary number?
3. A (decimal) value X can be represented in base b as follows:
X = an-1 bn-1 + an-2 bn-2 + …. + a0 b0
In order to represent a decimal value X in base b, you are taught to
successively divide X by b’s and collect remainders. Can your group say why
after studying the expression for X above ?
4. Do computations in given bases:
Base 6 numbers: 111 – 54
Base 8 numbers: 123 + 45
Base 2 numbers: 101010 + 1111
Base 2 numbers: 101010 – 1111
5. What can you say about a carry and a borrow in base b ?
Download