Question

In: Computer Science

1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed...

1. Complete the following table using 8-bit representation ((show your work to get credit)

Decimal

Signed Magnitude

One’s Complement

Two’s Complement

30

-47

0

Solutions

Expert Solution

Question 1:
Number is 30
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
30 /  2  result 15 remainder  0
15 /  2  result 7  remainder  1
7  /  2  result 3  remainder  1
3  /  2  result 1  remainder  1
1  /  2  result 0  remainder   1
Read the remainders from bottom to top.
( 30 )10 = ( 11110 )2
prepend zeros to make it 8-bit
( 30 )10 = ( 00011110 )2

As it is positive number all Signed Magnitude, One’s Complement, Two’s Complement are same as 00011110

====================================

Question 2:
Number is -47
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
47 /  2  result 23 remainder  1
23 /  2  result 11 remainder  1
11 /  2  result 5  remainder  1
5  /  2  result 2  remainder  1
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 47 )10 = ( 101111 )2
prepend zeros to make it 8-bit
( 47 )10 = ( 00101111 )2

-47 in Signed Magnitude = Replace most significant bit to 1 = 10101111
-47 in One’s Complement = Invert bits in binary = 11010000
-47 in Two’s Complement = Ones complement + 1 = 11010001

====================================

Question 3:
Number is 0
0 in 8-bit binary is 00000000
All Signed Magnitude, One’s Complement, Two’s Complement are same as 00000000

Decimal

Signed Magnitude

One’s Complement

Two’s Complement

30

00011110
00011110
00011110

-47

10101111
11010000
1101000

0

00000000
00000000
00000000

Related Solutions

Complete the following table. All binary numbers are 8-bit signed integers. (Don't forget to show the...
Complete the following table. All binary numbers are 8-bit signed integers. (Don't forget to show the steps of your solution!) Decimal value Sign-magnitude representation Ones' complement representation Two's complement representation -98 10001011 01110101 10100100 Compute the results of the indicated operations in columns 2 and 3, assuming that the binary numbers represent integers in the formats given by column 1. Identify which of the operations, if any, results in an overflow. (Don't forget to show the steps of your solution!)...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert 69 (base 10) to 8-bit binary using one’s complement. Show your work 1c. Convert 70 (base 10) to 8-bit binary using two’s complement. Show your work. 1d. Convert - 67 (base 10) to 8-bit binary using signed magnitude. 1e. Convert - 67 (base 10) to 8-bit binary using ones compliment. Show your work. 1f. Convert - 67 (base 10) to 8-bit binary using 2s...
What decimal number is represented by the binary 2’s complement 8-bit number 11100111? Show your work
What decimal number is represented by the binary 2’s complement 8-bit number 11100111? Show your work
1. Give the signed decimal value of A93 (12 bits, show work)
1. Give the signed decimal value of A93 (12 bits, show work)
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal...
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. c)The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. d)If the .data segment contains declarations                         A    BYTE      2 DUP (‘a’), ‘+’ B    BYTE      3 DUP (‘b’), 0 C    BYTE      4 DUP (‘c’), ‘–’ D    BYTE     ...
2) Show how each of the following signed, decimal integers would be stored in 16-bit two's...
2) Show how each of the following signed, decimal integers would be stored in 16-bit two's complement format. Give your answer in hexadecimal. a) -21 (5 points) b) 4096 (5 points)
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers...
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers as shown. 01110101 + 00111011 Add the following unsigned 8 bit binary numbers as shown. 01000100 + 10111011
QUESTION 6 What is the dotted decimal representation of an 8-bit netmaks? a 255.255.255.255 b 255.0.0.0...
QUESTION 6 What is the dotted decimal representation of an 8-bit netmaks? a 255.255.255.255 b 255.0.0.0 c 255.255.0.0 d 255.0.0.255 e 0.0.0.255 10 points    QUESTION 7 If you receive a Request timed out error message when using ping, what would you attempt next? a nmap b metasploit c ipconfig d route e tracert 10 points    QUESTION 8 What does the server generate when a message via SMTP cannot be delivered? a NSA b NDR c HTTPS d LOL...
Give the signed decimal value of D03 (12 bits, show work)
Give the signed decimal value of D03 (12 bits, show work)
Problem 1 (In order to get credit, show your work and you can copy the tables...
Problem 1 (In order to get credit, show your work and you can copy the tables below into the answer box to fill in.) Sugar Land Company is considering adding a new line to its product mix, and the capital budgeting analysis is being conducted by a MBA student. The production line would be set up in unused space in Sugar Land’ main plant. Total cost of the machine is $260,000. The machinery has an economic life of 4 years,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT