Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To find 2 ' s complement of a negative of a number using a 5 - bit pattern. First convert number to binary. If the

To find 2's complement of a negative of a number using a 5-bit pattern. First convert number to binary. If the number of digits is less 5, pad with leading zeros, flip the bits (0 becomes 1 and 1 becomes 0), and finally add 1 using binary arithmetic operation , carry 1 or 0+1=1. Example, write -10 in binary using 8-bit 2's complement.
10 in decimal is 1010 in binary.
pad with zeros to make 8-bit pattern of 00001010,
flip bits to get 11110101.
Add 1 to get 11110110.(11110101+00000001
image text in transcribed

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

Step: 3

blur-text-image

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions