0% found this document useful (0 votes)
13 views4 pages

MAT1252D Workshop 1

The document outlines a workshop for MAT1252 Mathematics for Computing, focusing on number system conversions and basic arithmetic operations. It includes exercises on converting between decimal, octal, binary, and hexadecimal systems, as well as performing additions in these systems and converting decimal fractions to binary. Additionally, it covers Binary-Coded Decimal (BCD) conversions and validations.

Uploaded by

aabidhali284
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

MAT1252D Workshop 1

The document outlines a workshop for MAT1252 Mathematics for Computing, focusing on number system conversions and basic arithmetic operations. It includes exercises on converting between decimal, octal, binary, and hexadecimal systems, as well as performing additions in these systems and converting decimal fractions to binary. Additionally, it covers Binary-Coded Decimal (BCD) conversions and validations.

Uploaded by

aabidhali284
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MAT1252 Mathematics for Computing

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.

___________________________________________________________________________

*1. Convert the following decimal numbers to octal:

(a) 42 (b) 64

(c) 141 (d) 192

2. Convert the following octal numbers to decimal:

(a) 26 (b) 72

(c) 157 (d) 213

3. Convert the following decimal numbers to binary:

(a) 42 (b) 64

(c) 132 (d) 150

4. Convert the following binary numbers to decimal:

(a) 11010 (b) 1010011

(c) 1110101 (d) 10001010

(e) 11000011 (f) 11100101

MAT1252 Workshop 1 Page 1 of 4


5. Convert the following hexadecimal numbers to binary:

(a) 3D (b) 4F

(c) AC (d) BD

6. Convert the following binary numbers to hexadecimal:

(a) 100101 (b) 110000

(c) 1101100 (d) 10011111

*7. (a) Convert the following hexadecimal numbers to decimal:


You may find the table of multiples of 16 useful.

hex 25 31 44 1D 52 77 Multiples of 16
116 = 16
dec 216 = 32
316 = 48
416 = 64
516 = 80
dec 17 90 78 39 51 63 616 = 96
716 = 112
hex 816 = 128
916 = 144
1016 = 160
1116 = 176
1216 = 192
(b) Here are some slightly more demanding 1316 = 208
hex conversions: 1416 = 224
1516 = 240
1616 = 256

hex A5 7D 3E 6B CD D4
dec

dec 190 93 127 35 250 167


hex

MAT1252 Workshop 1 Page 2 of 4


8. (a) Convert the decimal number 198 to octal, then to binary, then to hexadecimal.

(b) Convert the hexadecimal number DA to binary, then to octal, then to decimal.

9. Convert the following decimal fractions to binary:

(a) 0.34375 (b) 0.84375 (c) 0.546875 (d) 0. 5625

*10. Convert the following binary fractions to decimal:

(a) 0.10001 (b) 0.1111 (c) 0.01101 (d) 0.101111

*11. Perform the following octal additions.

47 23 56 61
35 + 41 + 72 + 54 +

12. Perform the following binary additions.

1101 101001 11001100


111 + 1101 + 111001 +

11011 11011 10001011


1110 + 1111 + 1111111 +

MAT1252 Workshop 1 Page 3 of 4


*13. Perform the following hexadecimal additions.

2C 4B EF 72
3A + AA + 4C + 28 +

A5A 3E5 5B8 20B6


2F5 + DDC + FA6 + AE49 +

14. Convert the following decimal numbers to BCD:

(a) 2981 (b) 487 (c) 5603

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

(c) 0100 0101 1100 0111 (d) 1110 0111 0011

(e) 0010 1001 0110 0011

MAT1252 Workshop 1 Page 4 of 4

You might also like