Obtain 1''s and 2''s complement, Computer Engineering

Assignment Help:

Obtain 1's and 2's complement of 1010 using only four-digit representation.

Solution:

1's complement: 1's complement of 1010 is 

846_Obtain 1s and 2s complement.png

Please note that wherever you have a digit 1 in number then complement contains 0 for that digit and vice versa. In other words to get 1's complement of a binary number we only have to change all 1's of the number to 0 and all zeros to 1's. This can be done by complementing every bit of binary number.

2's complement: 

Adding 1 in 1's complement will produce 2's complement

493_Obtain 1s and 2s complement1.png

The 2's complement can also be getting by not complementing least significant zeros till first 1 is encountered. This 1 is also not complemented. After this 1 rest of all bits are complemented on left.

Consequently 2's complement of given number (using this method) must be (you can check it by obtaining 2's complement as we have done in the illustration).


Related Discussions:- Obtain 1''s and 2''s complement

Pebble merchant, c programming code for pebble merchant

c programming code for pebble merchant

What is span of control, Q. What is span of control? Span of control te...

Q. What is span of control? Span of control tells the ratio among superiors and subordinates. Generally organizations are having two different types of spans. They are Wide Spa

What is analysis and list its sub stages, What is analysis, list its sub st...

What is analysis, list its sub stages? Understand the requirement by constructing models. The goal of analysis is to state what need is to be done and not how it is to be done.

Determine the term - artisan software and bridgepoint, Determine the term ...

Determine the term - ARTiSAN Software and  BridgePoint ARTiSAN Software : This provides a variety of UML based CASE tools, which also includes a real time modeling tool.

Determine the bandwidth requirement of a telephone channel, The bandwidth r...

The bandwidth requirement of a telephone channel is (A)  3 KHz                                      (B)  15 KHz (C)  5 KHz                                      (D)  25 KH

Loop level-parallelism based on granularity size, Loop Level This is...

Loop Level This is one more level of parallelism where iterative loop instructions can be parallelized. Fine Granularity  size is used at this level also. Simple loops in a

What is the importance of hierarchy of operators, Bring out the importance ...

Bring out the importance of hierarchy of operators?  The operators  within  C are grouped  hierarchically according to their precedence(i.e., order of evaluation). Operations w

Explain the semantics of each field of ethernet frame, Give the format of E...

Give the format of Ethernet frame and explain the semantics of each field. An Ethernet frame starts with headers which have three fields. The 64-bit preamble, which precedes th

Floating point format, consider the 8 bit floating point format including s...

consider the 8 bit floating point format including support for normalised nimbers and nonnumeric values.it included 3 bits for mantissa and 4 bitys for excess 7 exponent

Process of world wide web, Q. Process of World Wide Web? When you type ...

Q. Process of World Wide Web? When you type a URL in a web browser, this is what happens: 1. If URL contains a domain name, browser first connects to a domain name server an

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd