{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW_1_soln_mms_1

HW_1_soln_mms_1 - Homework#1Solutions ECE 15a Winter 2010 1...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework #1Solutions ECE 15a Winter 2010 1. Do the following conversion problems: (5p) (a) Convert decimal 34.4375 to binary Soln: 34/2 = 17 + 0 17/2 = 8 + 1 8/2 = 4 + 0 4/2 = 2 + 0 2/2 = 1 + 0 1/2 = 0 + 1 (34) 10 = (100010) 2 .4375 x 2 = 0 + .8750 .8750 x 2 = 1 + .7500 .7500 x 2 = 1 + .5000 .5 x 2 = 1 + .0 (.4375) 10 = (.0111) 2 (34.4375) 10 = (100010.0111) 2 (5p) (b) Calculate the binary equivalent of 1/3 out to 8 places. Then convert from binary to decimal. How close is the result to 1/3? 1/3 = 0.333
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon