CS
131 - Computer Science I
An index page for various class resources
last modified
08/29/2009
Syllabus
Announcements
-
1/23/2009 Due to a schedule change in the GIS lab, my
office hours on Thursday are now 1:30-2:30 instead of 4-5.
-
1/19/2009 After securing permission from the registrar,
our classroom for lecture is henceforth Walsh 109.
Quizzes
-
Quiz 1 - Jan. 30
- Quiz 2 - Feb. 13
- Quiz 3 - Feb. 25
(self-scheduled any time 2/25-2/27)
-
Quiz 4 - Mar. 20
- Quiz 5 - Apr. 3
- Quiz 6 - Apr. 17
-
Quiz 7 - Apr. 27
- Quiz 8 - May 6
Final Examination
-
The final exam is Friday, May 8 at 10:35 a.m. and will be comprehensive.
Readings
- 3/30/2009 Lewis & Loftus, Chapter 7
- 3/16/2009 Lewis & Loftus, Chapter 5
- 2/23/2009 Lewis & Loftus, Chapter 4
- 2/13/2009 Lewis & Loftus, Chapter 3
- 1/30/2009 Lewis & Loftus, Chapter 2
- 1/19/2009 Lewis & Loftus, Chapter 1
Labs
- 4/28/09 Lab 14 - Javadoc
- 4/21/09 Lab 13 -
GradeBook 2.0
- 4/14/09 Lab 12 -
GradeBook 1.0
- 4/7/09 Lab 11
- Writing Methods
- 3/31/09 Lab 10 - Arrays
- 3/24/09 Lab 9 - Who's the
Greatest?
- 3/17/09 Lab 8
- Two Games
- 3/10/09 Lab 7 - String
Things
- 2/24/09 Lab 6 - Word
Guesser
- 2/17/09 Lab 5 - Rolling
the Dice Again
- 2/10/09 Lab 4 - Volume
and Area Calculations
- 2/3/09 Lab 3
- Credit Cards
- 1/27/09 Lab 2 -
Rolling the Dice
- 1/20/09 Lab 1 -
Getting Started
Homework
- Fri., Apr. 17 - Exercise 7.10 (p. 433);
Also: Write a method that returns the median of an array of
integers that is passed as a parameter; you may assume that the array is
already sorted.
- Wed., Apr. 15 - Write one paragraph explaining what a "race condition"
is and giving an example of one from your (non-technical) life. (pp.
439-440)
- Wed., Apr. 8 - Exercises 7.4, 7.8 (p. 432)
- Fri., Apr. 3 - Exercises 7.5, 6.7 (p. 432) <- I
meant "7.6" - sorry about that...
- Wed., Apr. 1 (no foolin') - Exercises, 7.1, 7.3 (p. 432);
Also: Write one paragraph either supporting or refuting the
following position: "Better government regulation could have prevented the
Therac-25 tragedy." (see reading at the end of Chapter 5 - pp.
293-294).
- Mon. Mar. 30 - Programming Assignment
#3, Determining Leap Year
- Wed. Mar 25 - Exercises 5.5, 5.8, 5.10 (pp. 282-283)
- Fri. Mar. 20 - Exercises 5.3, 5.4, 5.7 (pp. 282-283)
- Mon. Mar. 16 - Write a method named between
that takes three integers and determines whether or not the third integer is
between the first two. (For purposes of this problem, equality counts,
so between(1,3,1) would return true.)
Also: Write the header for a method that encodes a message with
a "secret key", i.e. I tell you the message and the key and you would tell
me the encoded message.
- Fri. Mar. 11 - Exercise 4.7 (p. 201)
Also: Explain the quote, "Constructors convert other data into
a desired object."
- Wed. Mar. 9 - Exercises 4.1, 4.3, 4.6 (pp. 200-201)
- Fri. Feb. 27- Programming Assignment #2,
"Ideal" Weight
- Wed. Feb. 25 - Exercises 3.8, 3.12 (pp. 155-156)
Also:
Explain the difference between an int and an
Integer
- Mon. Feb. 23 - Exercises 3.7, 3.8 (p. 155)
- Fri. Feb. 20 - Exercises 3.3, 3.4, 3.5
- Wed., Feb. 18 - SR 3.6, 3.7, 3.8, 3.9 (pp. 121, 122); Exercises 3.1, 3.2
(p. 154)
- Fri., Feb. 13 - SR 2.36, 2.37 (p. 91) and SR 2.47 (p. 103)
- Wed. Feb 11 - Exercise 2.11 (pp. 107-108)
Also:
What feature(s) of Java could have been used to decrease the chance of error
with the Mars Climate Lander? (pp. 111-112)
- Mon. Feb 9 - Exercises 2.8, 2.10 (p. 107) [For 2.10, consider each
part to be independent, i.e. as if the lines in the previous part had never
been executed.]
- Mon. Feb. 9 - Programming Assignment #1,
Happy Birthday
- Fri., Feb 6 - Exercises 2.2, 2.4, 2.6, 2.7 (p. 106)
- Wed., Feb 4 - Express the string "CS 131 is Great!" using 8-bit ASCII.
Also, explain how your answer changes if you use Unicode instead.
(Hint: Appendix C of our text is your friend.)
- Fri., Jan. 30 - Exercises 1.16, 1.18, 1.20 (pp. 54-55)
- Wed., Jan. 28 - Number conversion worksheet handed out in class
- Mon., Jan. 26 - Exercises 1.4, 1.5, 1.6 (p. 53)
Also: What units for measuring storage come after
terabyte?
- Fri, Jan. 23 - Exercises 1.2, 1.3 (p. 53)
Also: How much internal disk storage does your computer have?
How do you find that information?
How much main memory does your computer have? How do
you find that information?