Perform the following operations using 2's complement (provide answers in 2's complement) 100001 base 2 - 10001 base 2 (7-bit architecture)

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

Perform the following operations using 2's complement (provide answers in 2's complement)

100001 base 2 - 10001 base 2 (7-bit architecture) 

 
Expert Solution
Step 1

2’s Complement Number:

For signed numbers on the most modern computers, two complementary numbers are represented. This notation allows a machine to add and subtract numbers using the same operations (so adders and subtractions are not required). Two complement notations can be described as:

  • A certain number of bits is used for number representation
  • The most critical bit is the sign bit
  • This notation is used for positive and negative numbers.
Step 2

(100001)2-(10001)2

Convert to 7-bit architecture:

(0100001)2-(0010001)2

 

Here A= 0100001, B= 0010001

First, find 2’s complement of B=0010001

Note: A number is added to 2's complement of 1 to the number of its 1’s complement.

1’s complement of 0010001 is:

  Computer Engineering homework question answer, step 2, image 1

Now add 1: 

1101110 + 1= 1101111

steps

Step by step

Solved in 3 steps with 2 images

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