Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 . ( 2 0 points ) A standard way for computers to represent non - negative and negative integers using binary fixed - width

3.(20 points) A standard way for computers to represent non-negative and negative integers using
binary fixed-width N is the 2s complement method TN (x). The idea is to have different rules for
non-negative and negative integers.
(a) Non-negative integers x with 0<= x <=2N 11 are represented using ordinary fixed-width binary
(e.g. Using binary fixed-width 8, T8(30)=(00011110)).
(b) Negative integers x with 2N 1<= x <0 are represented by flipping the bits of |x| and adding 1.
(e.g. Using binary fixed-width 8,
T8(30)=F lipBits(00011110)+1
=(11100001)+1
=(11100010)
)
(a)(4 points) According to the definition above, explain why each negative integer in binary fixed
width N 2s complement must start with 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions