SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Data Representation In Computer Systems
Exercise:
Exercises
Question:5 | ISBN:9780763704445 | Edition: 3

Question

5. Represent the following decimal numbers in binary using 8-bit signed magnitude,one’s complement, and two’s complement:

a) 77

b) -42

c) 119

d) -107

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a)  signed magnitude representation of 77 is 01001101

     1's complement representation of 77 is 01001101

     2's complement representation of 77 is 01001101   

b)  signed magnitude representation of -42  is 10101010

     1's complement representation of -42 is 11010101

     2's complement representation of -42 is 11010110  

c)  signed magnitude representation of 119 is 01110111

     1's complement representation of   119 is 01110111

     2's complement representation of    119 is 01110111

 
 

0 0

Discussions

Post the discussion to improve the above solution.