MAT1252D Workshop 1
MAT1252D Workshop 1
Workshop 1
Related objectives from Unit Outline: 1) to convert integers between decimal, octal, binary
and hexadecimal number systems, 2) to convert fractions between decimal and binary, 3)
perform simple additions in these systems, 4) perform BCD addition.
___________________________________________________________________________
(a) 42 (b) 64
(a) 26 (b) 72
(a) 42 (b) 64
(a) 3D (b) 4F
(c) AC (d) BD
hex 25 31 44 1D 52 77 Multiples of 16
116 = 16
dec 216 = 32
316 = 48
416 = 64
516 = 80
dec 17 90 78 39 51 63 616 = 96
716 = 112
hex 816 = 128
916 = 144
1016 = 160
1116 = 176
1216 = 192
(b) Here are some slightly more demanding 1316 = 208
hex conversions: 1416 = 224
1516 = 240
1616 = 256
hex A5 7D 3E 6B CD D4
dec
(b) Convert the hexadecimal number DA to binary, then to octal, then to decimal.
47 23 56 61
35 + 41 + 72 + 54 +
2C 4B EF 72
3A + AA + 4C + 28 +
15. Interpret each of the following as BCD numbers and convert each into its decimal
equivalent. Indicate any invalid BCD codes.
(a) 1001 1000 0000 0101 0110 (b) 0011 0011 0111 0001