CS 60 Homework Assignments, Lecture Slides and Demos
Fall 2009
Back to the CS 60 homepage
Assignment 13
- Due Thursday, December 10 by 11:59PM.
Assignment 11 - Due
Monday, November 23 by 11:59PM.
Assignment 10-
Due
Monday, November 16 by 11:59PM.
Assignment 9
- Due Monday, November 9 by 11:59PM.
- Lecture 17's
ppt slides (T 11/3/09)
- Lecture 18's
ppt slides (Th 11/5/09)
- Be sure to rename these files with a .pl
extension:
- ex.pl,
the example predicates from Tuesday's class
- logicpuzzle.pl,
the starter file for the logic-puzzle problem
- einstein.pl,
the Zebra puzzle example
- twentyfour.pl,
the starter file for the 24 problem
- hanoi.pl,
the starter file for the Towers-of-Hanoi problem
- spam.pl,
the Spam, Spampede, and Alien example
- parser.pl,
the starter file for the parser problem
- g0.pl,
example grammar #0
- g1.pl,
example grammar #1
- g2.pl,
example grammar #2
- g3.pl,
example grammar #3
- g4.pl,
example grammar #4
Assignment 8
- Due
Monday, November 2 by 11:59PM
Assignment 7,
Due Monday, October
26 by
11:59PM.
Assignment 6, Due
Monday, October 12 by 11:59PM.
Assignment 5,
Due Monday, October 5 by 11:59PM.
- Lecture 9's
ppt slides (T 09/29/09): Parsing
- Lecture 10's
ppt slides (Th 10/01/09): Evaluating
- miniMath.zip,
source code for a fully
implemented "minimath" language
- Unicalc.scm,
a Scheme solution to HW 4 to help with
unicalc in Java
- UnilangClassFiles.zip,
the compiled solutions
to HW 5 for trying out/testing
- hw5.zip, a
starting point
for this week's HW, including
- OpenList.java, the solution to
HW4 which you may use here (or use
your own)
- Quantity.java, a starting point
(with toString and equals)
for your
Quantity class
- QuantityTester.java, a starting
point
QuantityTester class
- Tokenizer.java, a complete
tokenizer for this week's assignment
- Parser.java, a starting point
that already parses Quantitys
- Evaluator.java, a starting point
that evaluates Quantitys
Assignment 4, Due
Monday, September 28 by 11:59PM.
- Lecture 7's
ppt slides (T 09/22/09): Java!
- Lecture 8's
ppt slides (Th 09/24/09): More Java (public/private/static), OpenList,
JUnit
- JavaIntro.java,
all of Java in a single example
program (almost) txt
version to browse
- OpenList.java,
the starting point for problem 1 txt
version to browse
- OpenListTester.java,
the tester you will use to test your solutions txt version to
browse
- Java
references, links for tutorials,
downloading, and all things Java
- unicalc-db.scm,
a big database of units for problem 2
- unicalc-mini-db.scm,
a small database of units for problem 2
Assignment 3,
Due
Monday, September 21 by 11:59PM.
Assignment 2, Due
Monday, September 14 by 11:59PM.
Assignment 1, Due
Monday, September 7 by 11:59PM.