Computer Science
15-111 (Sections A & B), Spring 2007
Class Notes: 26-Jan-2007
·
Quiz 1 Results:
o
q8
and q10 à bonus!
o
Top
scores: 104, 101, 99, 98, 96, 95, 95,
94, 94, …
·
Quiz 1 Retake: Friday, 2-Feb-2007 in class
o
Optional
for those receiving 85 or higher
o
Your
score: higher of original and retake
score
·
Homework 3.2 Deadline: moved to 8pm on Monday (time for office
hours)
·
Test 1 moved to 21-Feb-2007
Topic Outline:
1. Quiz 1 Solutions
2. WordSearch Redux
a. Static methods, static variables
b. try/catch
c. etc…
3. App A.3: Manipulating Bits
a. Bitwise Operators: And (&), Or (|), Xor (^), Not (~)
b. Shift Operators:
i.
Shift
Left (<<)
ii.
Shift
Right, Sign Extended (>>)
iii.
Shift
Right, 0-filled (>>>)
c. Multiplication and Division via
shifting
d. Storing bytes in int’s by shifting and masking
4. Pixel image demo
5. Return quiz 1