{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

4-Assignments_EE200hw2_solution

# 4-Assignments_EE200hw2_solution - 1's complement of(110110...

This preview shows page 1. Sign up to view the full content.

King Fahd Univesity of Petroleum & Minerals Department of Electrical Engineering EE200-03 (062) Homework # 2 1. Find the (r-1)'s complements of the following numbers: (498530) 10 , (A9C.5) 16 , (110110) 2 , and (100000.011) 2 . 2. Perform the binary subtraction 110110 – 11101 using the 2's complement. 3. Represent the signed numbers (+75) and (-52) in binary using 8 bits. Then add the two numbers and convert the sum to decimal. 4. Represent the decimal number 482.5 using BCD and 2421 codes. 5. Represent the message " Home Work 2 is due" in ASCII using the hexadecimal representation. 1. 9's complement of (498530) is (501469) 15's complement of (A9C.5) is (563.A)
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1's complement of (110110) is (001001) 1's complement of (100000.011) is (011111.100) 2. 110110 – 011101 Æ 110110 + 100011 = 1011001 Discard the end carry. Answer is 011001 3. 75 in binary is 1001011, then +75 using 8 bits is 01001011 52 in binary is 110100, then +52 using 8 bits is 00110100 and -52 is 11001100 (+75) + (-52) is 01001011 11001100 100010111 Æ discard end carry, result is + 23 4. 482.5 Æ BCD 0100 1000 0010 . 0101 2421 0100 1110 0010 . 1011 5. " Home Work 2 is due " is represented in ASII using Hexadecimal representation is: 48 6F 6D 65 20 57 6F 72 6B 20 32 20 69 73 20 64 75 65...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online