Question

​​​​​ Using binary numbers of 8 bits each, convert to binary and solve the following arithmetic...

​​​​​

  1. Using binary numbers of 8 bits each, convert to binary and solve the following arithmetic operations using two’s complement representation: (10 points)

                  a) (48)10 - (13)10

          b) (-18)10 + (-13)10  

Homework Answers

Answer #1

solution:

a) :

(48)10 - (13)10

Step 1:- First convert both the values in binary

48 = 00110000

13 = 00001101

Step 2:- convert negative number to 1's complement

00001101 = 11110010

Step 3:- convert 1's complement into 2's complement

11110010 + 1 = 11110011

Note: 2's complement of positive number will be same as binary number

48 - 13

48 +(-13) = 00110000+11110011 = 00100011

b):

(-18)10 - (13)10

Step 1:- First convert both the values in binary

18 =    00010010

13 = 00001101

Step 2:- convert negative number to 1's complement

00010010=11101101

00001101 = 11110010

Step 3:- convert 1's complement into 2's complement

11101101 + 1= 11101110

11110010 + 1 =11110011

Note: negative number represented by their 2's complement...

(-18)+ ( - 13)

(-18) +(-13) = 11101110 + 11110011 = 11100001

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
7. Convert 0.25 to binary with 8 bits to the right of the binary point. 8....
7. Convert 0.25 to binary with 8 bits to the right of the binary point. 8. Convert -47 (base 10) to binary 8-bit signed-magnitude. 9. Convert -39 (base 10) to 8-bit binary using excess 127 notation. 10. Convert -61 (base 10) to 8-bit binary using two’s complement
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356...
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356              b) 658 What decimal value does the 8-bit binary number 10011110 represent if it is on a computer using two’s complement representation? What decimal value does the 8-bit binary number 10110100 have if it is on a computer using two’s complement representation? please show your work for question number 4. thank you.
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned...
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned binary representation, convert 12 (D) to binary. Show work. 4. Assuming 9-bit two’s complement representation and let x be binary representation of 94 (D) a. Find x. Show work. b. Show the effect of the ASL operation on x, and then convert the result back to decimal. c. Show the effect of the ASR operation on x, and then convert the result back to...
What range of numbers encoded using two’s complement representation can be expressed using 5 bits? Provide...
What range of numbers encoded using two’s complement representation can be expressed using 5 bits? Provide your answer in decimal.
i) What would be stored in the 4-digit binary codes if the clock display time was:17:29...
i) What would be stored in the 4-digit binary codes if the clock display time was:17:29 (7) (c) Using two’s complement binary arithmetic, find the sum of (i) 48 and – 19 (ii) ( 6)  ( 13) and (iii) Convert (b) (i)Convert 87.25 in decimal to Binary and show it value in Octal and Hex. n
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement:...
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement: a) 77 b) -42 c) 119 d) -107 E) 60 f) -60 g) 20 h) -20
a) I want the answers to the following parts in hex a. What is [A+4]? b....
a) I want the answers to the following parts in hex a. What is [A+4]? b. What is [B+4]? c. What is [D+4] 7) Using one byte of storage (8 bits)or 16 bits if needed, what is the binary two’s complement representation of each of the following decimal numbers? a. -111 b. -126
Convert each of the following decimal numbers to binary, octal, and hexadecimal numbers. Only go to...
Convert each of the following decimal numbers to binary, octal, and hexadecimal numbers. Only go to 7 bits to the right of the decimal and be sure to appropriately round the 7th bit. (f) 250.8
Find the 2's complement of the following decimal numbers (You must convert the number to binary...
Find the 2's complement of the following decimal numbers (You must convert the number to binary and the answer has to be in binary with the same number of bits as the conversion)? a. 20 b. 15 c. 2126 d. 266 e. 466 please explain how you did it!