Assignment1
Assignment1
Submission instructions:
- Please show all solution steps for each question. Note that only stating the final answers would not
result in any mark.
- Please convert your assignment to pdf format and submit it through Moodle.
- It is recommended that you state each question followed by its solution, so that you can ensure that
the marker won’t skip any of your solutions.
- Please anticipate any technical difficulties and submit your assignment way before the deadline.
- Don’t forget to write your name, student ID, course name, and course code on your submitted file.
- Don’t forget to name your submitted file as follows: yourLastName_studentID_assignment#
- Please append your signed “Expectations of Originality” form with your submission.
1- Convert the following numbers with the indicated bases to decimal: (8 points)
a) (2765)8
b) (1ED.48)16
c) (111001.01101)2
d) (CEAB.84)16
2- Convert the following unsigned binary numbers to hexadecimal, octal, and decimal. (8 points)
a) 11101.10110
b) 11001.01001
c) 1.100110
d) 110.0101
4- What is the maximum value that can be expressed with 16 bits. What are its equivalent decimal,
octal, and hexadecimal numbers? (2 points)
6- What is the decimal number equivalent to the following signed binary numbers? (8 points)
a) 10100101 b) 10100010 c) 11111111 d) 10000011
e) 01110111 f) 00000001 g) 01000000 h) 01001000
7- Find 1’s and 2’s complement of the signed binary numbers in question 6 above. Then, find the
decimal number equivalent to these complemented signed binary numbers. (10 points)
COEN 212 - Digital Systems Design I - FALL 2024
8- Find 9’s complement and 10’s complement of the following numbers? (4 points)
a) 25478036 b) 63325600 c) 72813640 d) 34567890
9- Perform subtraction on the given unsigned numbers using 2’s complement of the subtrahend.
Where the result is negative, find its 2’s complement and affix a minus sign. (6 points)
a) 10011 – 10010 b) 101000 – 10101
11- Perform the following operations in 2’s complement using the minimum possible number of
bits. Show your solution steps in detail. (24 points)
a) -12 – 8 b) +102 – 113 c) +5 + -7 d) -11 – 3
e) -5 – 15 f) -1 – 21 g) -128 – 256 h) +126 – 127
12- Evaluate the following 8-bit signed binary number 10101101 in its equivalent decimal, if it is
written in: (6 points)
a) Signed-magnitude b) 1’s complement c) 2’s complement