Question

In: Computer Science

1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b....

1. Convert to binary and hexadecimal (PLEASE SHOW WORK)

a. 35

- binary:

- hexadecimal:

b. 85

- binary:

- hexadecimal:

c. 128

- binary:

- hexadecimal:

d. 4563

- binary:

- hexadecimal:

Solutions

Expert Solution

a. 35
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
35 /  2  result 17 remainder  1
17 /  2  result 8  remainder  1
8  /  2  result 4  remainder  0
4  /  2  result 2  remainder  0
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 35 )10 = ( 100011 )2
Prepend zeros to make it 8-bit
( 35 )10 = ( 00100011 )2


HexaDecimal    Binary
-------------------------
0              0000
1              0001
2              0010
3              0011
4              0100
5              0101
6              0110
7              0111
8              1000
9              1001
A              1010
B              1011
C              1100
D              1101
E              1110
F              1111

Split 8-bit binary to 2 halves then Use above table to convert 4 bit binary to hex values
0010 in hex is 2
0011 in hex is 3
Answer in hex is (23)16

- binary: 100011
- hexadecimal: 23

=============================

b. 85
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
85 /  2  result 42 remainder  1
42 /  2  result 21 remainder  0
21 /  2  result 10 remainder  1
10 /  2  result 5  remainder  0
5  /  2  result 2  remainder  1
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 85 )10 = ( 1010101 )2
Prepend zeros to make it 8-bit
( 85 )10 = ( 01010101 )2

Split 8-bit binary to 2 halves then Use above table to convert 4 bit binary to hex values
0101 in hex is 5
0101 in hex is 5
Answer in hex is (55)16

- binary: 1010101
- hexadecimal: 55

=============================

c. 128
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
128    /  2  result 64 remainder  0
64 /  2  result 32 remainder  0
32 /  2  result 16 remainder  0
16 /  2  result 8  remainder  0
8  /  2  result 4  remainder  0
4  /  2  result 2  remainder  0
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 128 )10 = ( 10000000 )2

Split 8-bit binary to 2 halves then Use above table to convert 4 bit binary to hex values
1000 in hex is 8
0000 in hex is 0
Answer in hex is (80)16

- binary: 10000000
- hexadecimal: 80

=============================

d. 4563
Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.
4563   /  2  result 2281   remainder  1
2281   /  2  result 1140   remainder  1
1140   /  2  result 570    remainder  0
570    /  2  result 285    remainder  0
285    /  2  result 142    remainder  1
142    /  2  result 71 remainder  0
71 /  2  result 35 remainder  1
35 /  2  result 17 remainder  1
17 /  2  result 8  remainder  1
8  /  2  result 4  remainder  0
4  /  2  result 2  remainder  0
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1
Read the remainders from bottom to top.
( 4563 )10 = ( 1000111010011 )2
Prepend zeros to make it 16-bit
( 4563 )10 = ( 0001000111010011 )2

Split 8-bit binary to 2 halves then Use above table to convert 4 bit binary to hex values
0001 in hex is 1
0001 in hex is 1
1101 in hex is D
0011 in hex is 3
Answer in hex is (11D3)16


- binary: 1000111010011
- hexadecimal: 11D3

Related Solutions

Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal:...
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal: 2. 37 - binary: - decimal: 3. 0A -binary: - decimal: 4. 11 - binary: - decimal:
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal....
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal. There are ____________ kilobytes in a megabyte. Convert -13210 to a 16-bit 2’s complement in binary ____________ and hexadecimal ______________.
Convert from binary to decimal to hexadecimal (PLEASE SHOW ALL WORK) a. 1010 1011 - decimal:...
Convert from binary to decimal to hexadecimal (PLEASE SHOW ALL WORK) a. 1010 1011 - decimal: - hexadecimal b. 0011 0001 - decimal: - hexadecimal: c. 1110 0111 - decimal: - hexadecimal: d. 1111 1111 - decimal: - hexadecimal:
Convert the following numbers to 32-bit, 2s compliment binary and hexadecimal formats. Show your work in...
Convert the following numbers to 32-bit, 2s compliment binary and hexadecimal formats. Show your work in recursive division form. 899726616 1656906428 -77102817 -251026154
What is (567.12) octal in binary. What is(5CF.AD) hexadecimal in binary. Please show work so I...
What is (567.12) octal in binary. What is(5CF.AD) hexadecimal in binary. Please show work so I can understand how to solve thanks.
Convert the hexadecimal number BAD D00D 60E5 F00l to binary, octal, base-4. Show your work.
Convert the hexadecimal number BAD D00D 60E5 F00l to binary, octal, base-4. Show your work.
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and...
1. Convert 5.5 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation. 2. (4 points) Convert -7.875 to hexadecimal notation using IEEE 754 single precision. Please show your work and answer must be in hexadecimal notation.
Convert hexadecimal BEEF to base 2 and 8 using grouping (No mathematics). Please show all work.
Convert hexadecimal BEEF to base 2 and 8 using grouping (No mathematics). Please show all work.
SUBJECT: CYBER ESSENTIALS Convert between binary and hexadecimal values Question 7: Convert binary number to a...
SUBJECT: CYBER ESSENTIALS Convert between binary and hexadecimal values Question 7: Convert binary number to a hexadecimal number Binary number: 00001100 Hexadecimal value: ?? Question 8: Convert binary number to a hexadecimal number Binary number: 01001111 Hexadecimal value: ?? Question 9: Convert binary number to a hexadecimal number Binary number: 10101101 Hexadecimal value: ?? Question 10: Convert hexadecimal number to an 8 bit binary number Hexadecimal number: AB 8 bit binary number: Question 11: Convert hexadecimal number to an 8...
Convert a list of decimal numbers into their binary and hexadecimal equivalents Add the elements of...
Convert a list of decimal numbers into their binary and hexadecimal equivalents Add the elements of each of these lists to generate a total sum Print the lists, and the total sum of each value C++ contains some built-in functions (such as itoa and std::hex) which make this assignment trivial. You may NOT use these in your programs. You code must perform the conversion through your own algorithm. The input values are: 5 9 24 2 39 83 60 8...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT