HW-1, LOGICd
HW-1, LOGICd
Ministry of Education
KING ABDULAZIZ UNIVERSITY
Name:
Abdullah Saeed Abdullah Alsubhi
ID No:
2236085
Points
50
1.5 Convert the following binary numbers into octal and hexadecimal numbers:
(a) 1101011100101 (b) 11000011100110000011
1.7 Identify the following unsigned binary numbers as odd or even without
converting them to decimal:
110011002; 001001002; 011110012.
1.16 Perform the indicated arithmetic operations in binary. Assume that the numbers
are in decimal and represented using 8 bits. Express the results in decimal. Use
the2’s complement approach for carrying out all subtractions.
(a) 14 (c) 32
+17 -14
(b) 34 (d) 34
+28 -42
1.17 Using 2’s complement, perform the following subtraction: 3AFA16 - 2F1E16.
Include the answer in hex.
1.18 Using 9's and 10's complement arithmetic, perform the following arithmetic
operations:
(a) 25410-13210 (b) 78310-80710
1.19 Perform the following arithmetic operations in binary using 6 bits. Assume that
all numbers are signed decimal. Use twos complement arithmetic. Indicate if
there is any overflow.
(a) 14 (b) 7 (c) 27
+8 +(-7) +(-19)
3
(d) (-24) (e) 19 (f) (-17)
+(-19) -(-12) -(-16)
1.20 Obtain the bit encodings of the following numbers and then perform the
indicated arithmetic operations using BCD:
(a) 54 (b) 782 (c) 82
+48 +219 -58
1.21 Find the odd parity bit for the following binary message to be transmitted:
10110000.
1.22 If a transmitting computer sends the 8-bit binary message 11000111 using an
even parity bit. Write the 9-bit data with the parity bit in the most significant bit.
If the receiving computer receives the 9-bit data as 110000111, is the 8-bit
message received correctly? Comment.