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...
1. Give the signed decimal value of A93 (12 bits, show work)
1. Give the signed decimal value of A93 (12 bits, show work)
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,...
Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122...
Assume -122 and -66 are signed 8-bit decimal integers. Calculate -122 + (- 66). and -122 - (- 66). Do we have overflow or underflow after each operation? Why?
Assignment: Complete the following problems. You must show your work on the math problems to get...
Assignment: Complete the following problems. You must show your work on the math problems to get full credit. Every student is responsible for completing their own responses to the following problems. 1. Eastern Engineering has the following base-case estimates for a new small engine assembly project:               Capital Investment = $15,000,000               Fixed Costs = $3,250,000               Variable Costs = $600 per unit               Price per Unit = $1,000               Demand = 20,000 units per year Service Life = 12...
Represent -34 and +67 in the following way: a) 8 bit 1's complement representation.
Represent -34 and +67 in the following way: a) 8 bit 1's complement representation.
*Complete the problems in an Excel spreadsheet. Be sure to show your work to receive credit;...
*Complete the problems in an Excel spreadsheet. Be sure to show your work to receive credit; no hard keys. Problem 2-1: Preparing Financial Statements Information below is for Warner Manufacturing, Inc. for the year ended December 31, 20x1 except where beginning of year numbers indicated. All amounts in SAR unless otherwise stated. Using the information below: 1. Prepare an income statement with the proper title 2. Prepare end of year balance sheet with the proper title 3. Calculate net working...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT