InClassActivity01-sol

InClassActivity01-sol - Activity #01 (solutions) Last Name...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Activity #01 (solutions) Last Name First Name Student ID Number 1.1 1.2 Total Grader Initials 50 points 50 points 100 points Activity 1.1 (First hour) A. (5 points) Administrative matters 1. (3 points) Click on course syllabus, and note the course pre-requisites. Check off the boxes that apply to you: ± I took ECE 543 (Introduction to Digital Systems) ± I took CS 410 (Introduction to Scientific Programming) ± I took CS 415 (Introduction to Computer Science I) ± Other (please see your instructor immediately) Grading: 5 points for any answer. 0 pts for no answer. Please hand the activities marked “other” to Prof. Kuan after grading. 2. (2 points) Do you have a learning disability that your instructor should be aware of? ± Nope. ± Yes, I have one. Please contact your instructor immediately for further guidance. Grading: 5 points for any answer. 0 pts for no answer. Please hand the activities marked “yes” to Prof. Kuan after grading. B. (30 points) Recap of binary number representation Grading policy for all questions: 2 pts for trying, 5 pts for correct answer. 1. (5 points) 77 10 = 0100 1101 2 = 115 8 = 4D 16 2. (5 points) 0110 0100 2 = 100 10 = 144 8 = 64 16 3. (5 points) -23 10 = __ 1110 1001 __(eight-bit, two’s complement) 4. (5 points) If you add 77 10 , and –23 10 using 8-bit two’s complement arithmetic, do you get an overflow? Nope – we can never get an overflow adding numbers with opposite signs. 6. (5 points)What is the result of performing an arithmetic right shift on the 8-bit number representing -23 10 ? Answer: In an arithmetic right shift, we shift in the sign bit on the left. The result is about half the original number, and has the same sign. Result 11110100 2 = -12 10 , approximately half of –23, and with the same sign, like we expect.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 04/08/2008 for the course ECE 562 taught by Professor Zhou during the Fall '07 term at New Hampshire.

Page1 / 4

InClassActivity01-sol - Activity #01 (solutions) Last Name...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online