Question

In: Computer Science

For the first three sections assume unsigned integers. Convert to binary and hexadecimal 85 4563 Convert...

For the first three sections assume unsigned integers.

  1. Convert to binary and hexadecimal
    1. 85
    2. 4563
  2. Convert from binary to decimal and hexadecimal.
    1. 0b1010 1011
    2. 0b0011 0001
  3. Convert from hexadecimal to binary and decimal.
    1. 0xB2
    2. 0x11

Solutions

Expert Solution

Convert to binary

  1. 85-1010101

Steps

Number 85

divide by 2

result

42

remainder

1(LSB)

divide by 2

result

21

remainder

0

divide by 2

result

10

remainder

1

divide by 2

result

5

remainder

0

divide by 2

result

2

remainder

1

divide by 2

result

1

remainder

0

divide by 2

result

0

remainder

1(MSB)

b. 4563-1000111010011

Steps

Number 4563

divide by 2

result

2281

remainder

1(LSB)

divide by 2

result

1140

remainder

1

divide by 2

result

570

remainder

0

divide by 2

result

285

remainder

0

divide by 2

result

142

remainder

1

divide by 2

result

71

remainder

0

divide by 2

result

35

remainder

1

divide by 2

result

17

remainder

1

divide by 2

result

8

remainder

1

divide by 2

result

4

remainder

0

divide by 2

result

2

remainder

0

divide by 2

result

1

remainder

0

divide by 2

result

0

remainder

1 (MSB)

Convert to hexadecimal

a. 8510=5516

Convert 8510 to hex:

Division
by 16

Quotient

Remainder
(decimal)

Remainder
(hex)

Digit #

85/16

5

5

5

0

5/16

0

5

5

1

b. 456310=11D316

Convert 456310 to hex:

Division
by 16

Quotient

Remainder
(decimal)

Remainder
(hex)

Digit #

4563/16

285

3

3

0

285/16

17

13

D

1

17/16

1

1

1

2

1/16

0

1

1

3

Convert from binary to decimal

a. 1010 1011=171

1010 1011=(1 × 2⁷) + (0 × 2⁶) + (1 × 2⁵) + (0 × 2⁴) + (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰) = 171

b.0011 0001=49

00110001 = (0 × 2⁷) + (0 × 2⁶) + (1 × 2⁵) + (1 × 2⁴) + (0 × 2³) + (0 × 2²) + (0 × 2¹) + (1 × 2⁰) = 49

Convert from binary to hexadecimal

a. 1010 1011=AB

b.0011 0001=31


Related Solutions

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 ______________.
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:
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...
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101?...
1) What are the hexadecimal, and octal equivalents for the unsigned binary value 0111 0000 1101? (note the spaces in the binary are for readability (like a comma in a decimal value; there is only a single 12 bit binary value) PLEASE EXPLAIN IT IN DETAIL
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...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal representation. • Convert 01100000101110000001010111111000 the binary representation to a hexadecimal representation. • Convert 0xBAAADA55 hexadecimal representation, to a binary representation. 2. (8 pts) Complete the following arithmetic operations in two’s complement representation. What are the values of the carry flag and the overflow flag? (Assume a six-bit system) • 31 + 11 • 13 – 15 • (-2) x (-16) • (-15) ÷ 5
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 the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal...
Convert the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal Hex: Decimal: b) 136 decimal to: hex, and also binary Hex: Binary:
Convert the following to Octal, hexadecimal and binary (long method (multiply and Divide by methods)) 2647.95...
Convert the following to Octal, hexadecimal and binary (long method (multiply and Divide by methods)) 2647.95 (10)
Design a Decoder Circuit that can convert a 4-bit Binary Number to a Hexadecimal Output.
Design a Decoder Circuit that can convert a 4-bit Binary Number to a Hexadecimal Output.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT