F09_ECE230_Homework__2_Solutions

# F09_ECE230_Homework__2_Solutions - 28 26=54 d 110011...

This preview shows page 1. Sign up to view the full content.

ECE230 Homework #2 (Due on 9/23/2009 before class) 1. (10 points) Convert the following unsigned binary integers into decimal: a. 11111 b. 1000000 c. 1001101101 d. 101111 e. 10101010 Answer: a. 11111=31 b. 1000000=64 c. 1001101101=621 d. 101111=47 e. 10101010=170 2. (10 points) Compute the sum of the following pairs of 6-bit unsigned integers: a. 000011+001100 b. 010100+101101 c. 011100+011010 d. 110011+001110 e. 001011+100111 Answer: a. 000011+001100=001111 3+5=12 b. 010100+101101=000001 20+45=65 c. 011100+011010=110110
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 28+26=54 d. 110011+001110=000001 51+14=65 overflow e. 001011+100111=110010 11+39=50 3. (10 points) The following decimal integers are to be stored in a 6-bit two’s complement format. Show how they are stored: a. +25 b. 0 c.-15 d.-45 e.-16 Answer: a. 011001 b. 000000 c. (i) 15=001111; (ii) For -16, complement each bit: 110000; (iii) Add 1: 110001 d. 45= 101101, therefore -45 is overflow. e. (i) 16=010000; (ii) For -16, complement each bit: 101111; (iii) Add 1: 110000....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern