Docsity

ECE 2030 Quiz #1 Solution Sheet: Converting Numbers between Base-2, Base-10, and BCD, Quizzes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Dr. Davis
ECE 2030D
Quiz #1 โ€“ Answer Sheet
08/29/2003
Q1. Convert the following unsigned base-2 number to base-10:
(00011101)2
A1.
(00011101)2 = (0x27 + 0x26 + 0x25 + 1x24 + 1x23 + 1x22 + 0x21 + 1x20) 10
= (0 + 0 + 0 + 16 + 8 + 4 + 0 + 1) 10
= (29) 10
Q2. Convert the following BCD number to a base-10 number:
(00101001)BCD
A2.
( ) ( ) ( )
( ) ( )
( )
10
01
01
29
92
1001001000101001
=
=
=
nn
nnBCD
, where n1 is nibble at the tens digit and n0 is nibble at the ones digit.
Q3. Convert the following base-10 number to base-2:
(422)10
A3.
pf2

Partial preview of the text

Download ECE 2030 Quiz #1 Solution Sheet: Converting Numbers between Base-2, Base-10, and BCD and more Quizzes Electrical and Electronics Engineering in PDF only on Docsity!

Dr. Davis

ECE 2030D

Quiz #1 โ€“ Answer Sheet

Q1. Convert the following unsigned base-2 number to base-10: (00011101) 2 A1. (00011101) 2 = (0x 7

  • 0x 6
  • 0x 5
  • 1x 4
  • 1x 3
  • 1x 2
  • 0x 1
  • 1x 0 ) (^10) = (0 + 0 + 0 + 16 + 8 + 4 + 0 + 1) (^10) = (29) (^10) Q2. Convert the following BCD number to a base-10 number: (00101001)BCD A2.

1 0 1 0 29

n n BCD n n , where n1 is nibble at the tens digit and n0 is nibble at the ones digit. Q3. Convert the following base-10 number to base-2: (422) 10 A3.

fi ( 110100110 ) 2

ECE 2030 Quiz I Solution Guide (Section E)

  1. (01001100) 2 = (76) 10
  2. (01110110)BCD = (76) 10 (387) 10 = (110000011) 2