Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement, two's complement, and excess-127 representations: Decimal +38 -54 SM 00101010 11110101 OC 01000100 11110101 TC 00001111 11110101 Excess-127 10001111 11110101 ■

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement,
two's complement, and excess-127 representations:
+++
Decimal
+38
-54
SM
00101010
11110101
OC
01000100
11110101
TC
00001111
11110101
Excess-127
10001111
11110101
Transcribed Image Text:Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement, two's complement, and excess-127 representations: +++ Decimal +38 -54 SM 00101010 11110101 OC 01000100 11110101 TC 00001111 11110101 Excess-127 10001111 11110101
Expert Solution
Introduction

Signed Magnitude:

When a number is expressed in sign-magnitude form, the MSB is used to indicate the number's sign, while the remaining bits reflect its magnitude. Therefore, simply add the sign bit to the leftmost side of an unsigned binary number. This representation is comparable to that of signed decimal numbers.

1's complement:

By complementing each bit in a signed binary number, one can derive the 1's complement of a given number. Therefore, a positive number multiplied by one produces a negative number. The complement of a negative number, 1, yields a positive number. The original signed binary number can be obtained by doing two times the 1's complement of a binary number that includes the sign bit.

2's complement:


One is added to the 1's complement of a signed binary number to produce the binary number's 2's complement. The result is a negative number when a positive number is multiplied by two. Similar to this, adding two to a negative number results in a positive number. The original signed binary number can be obtained by performing two times the 2's complement of a binary number that includes the sign bit.

 

Excess 127:


The excess-M form of a signed integer yields the unsigned binary value by simply adding M to the signed integer. – The number 010, for instance, is represented as 0 + 7 = 710 = 01112, assuming that we're using excess-7 representation. – The symbol for the number 310 is 3 + 7 (1010 = 10102).

 

 

 

Using the above procedure we can calculate each field in the table...

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY