0
2.0kviews
Convert 0010 0100 0010 1101 from base 2 to decimal. Convert 134 from base 10 to hexadecimal. Write steps to conversion.

Subject : Structured Programming Approach

Title : Introduction to Computer, Algorithm and Flowchart

Marks : 4M

1 Answer
0
31views

Given:

1) (0010 0100 0010 1101)2=(?)10

2 (134)10=(?)16

1) To Convert Base 2 to decimal:

(0010 0100 0010 1101)2=(?)10

  1. Multiply the binary digits (bits) with powers of 2 according to their positional weight.
  2. The position of the first bit (going from right to left) is 0 and it keeps on incrementing as you go towards left for every bit.
  3. 0215+0214+1213+0212+0211+1210+029+028+027+026+125+024+123+122+021+120

    =0+0+8192+0+0+1024+0+0+0+0+32+0+8+4+1

    =9261

    (0010010000101101)2=(9261)10

2) To Convert Decimal to Hexadecimal:

(134)10=(?)16

  1. Divide the decimal number by 16.
  2. Write down the remainder (in hexadecimal).
  3. Divide the result again by 16. Treat the division as an integer division.
  4. Repeat step 2 and 3 until result is 0.
  5. The hexadecimal value is digit sequence of the reminders from last to first.

enter image description here

(134)10=(86)16

Please log in to add an answer.