6. Show how each of the following signed, decimal integers would be stored in 16-bit two's complement format. Give your answer in hexadecimal. a. 431693 € 41024 8. +32767 1 32767 b. -252 f. h -1024 -32768

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Exercise 6: Two's Complement Conversion**

Objective: Demonstrate converting signed decimal integers into 16-bit two's complement form and provide answers in hexadecimal.

Instructions: Show how each of the following signed decimal integers would be stored in 16-bit two’s complement format. Give your answer in hexadecimal.

a. +31093  
b. -252  
c. +1024  
d. -1024  
e. -1  
f. -32768  
g. +32767  
h. -256  
i. -32767  
j. -128  

(Note: Provide the hexadecimal equivalent of each number after converting to 16-bit two's complement.)
Transcribed Image Text:**Exercise 6: Two's Complement Conversion** Objective: Demonstrate converting signed decimal integers into 16-bit two's complement form and provide answers in hexadecimal. Instructions: Show how each of the following signed decimal integers would be stored in 16-bit two’s complement format. Give your answer in hexadecimal. a. +31093 b. -252 c. +1024 d. -1024 e. -1 f. -32768 g. +32767 h. -256 i. -32767 j. -128 (Note: Provide the hexadecimal equivalent of each number after converting to 16-bit two's complement.)
Expert Solution
Step 1

The number system uses a base and digit or symbol to represent a number. If the base of a number system is 'n' then the digit will be '0' to 'n-1'.

Decimal Number System:

The base of the decimal number system is 10 and this number system uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

Hexadecimal Number System:

The base of the hexadecimal number system is 16 and this number system uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.

For decimal to hexadecimal conversion, we need to divide the decimal number by base value(16) and write the remainder in the reverse order. When we divide a number by 16 then the remainder will be 0 to 15 only. The digit 0 to 9 are written as it is and the digit 10, 11, 12, 13, 14, and 15 are replaced with A, B, C, D, E, and F respectively.

a.

The given decimal number is = 31693

The equivalent hexadecimal number in 16 bits will be = 0x 7BCD

b.

The given decimal number is = -252

The equivalent hexadecimal number in 16 bits will be = 0x FF04

c.

The given decimal number is = 1024

The equivalent hexadecimal number in 16 bits will be = 0x 0400

d.

 

The given decimal number is = -1024

The equivalent hexadecimal number in 16 bits will be = 0x FC00

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education