Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started