Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need this answered asap plz. Thanks! Part A: Understanding the relationship between hexadecimal, binary, and decimal representations are very important when discussing machine-level programs. See

Need this answered asap plz. Thanks!

Part A: Understanding the relationship between hexadecimal, binary, and decimal representations are very important when discussing machine-level programs.

See the example below.

Weights

128

64

32

16

8

4

2

1

Base 2

27

26

25

24

23

22

21

20

Example

1

0

1

1

0

0

1

0

1*128 + 0*64+1*32+1*16+0*8+0*4+1*2+0*1 = 178

Weights

256

16

1

Base 16

162

161

160

Example

0

B

2

0*256 + 11*16 +2*1 = 178

A=10

B=11

C=12

D=13

E=14

F=15

Two's complement: The most significant bits of the word have a negative weight. To get the two's complement of a binary number, invert the digits, then add one to the result. See example below.

00001110 = 14

11110010 = -14

1) Convert the following hexadecimal number to binary and decimal: 5C.

2) Convert the following binary number to hexadecimal and decimal: 00001110.

3) Convert the following decimal number to hexadecimal and binary: 88.

4) Use two's complement to convert the following decimal number to binary: -49.

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

1. Explain why evaluation is important.

Answered: 1 week ago