Structure and Interpretation of Computer Programs -
Note: Some of the material on this page was removed after the
semester ended, since it has become obsolete in subsequent
News and Reminders
The 6.001 Spring Semester
1997 Exam Question Handout
In order to help you prepare for the parts of the final exam that deal
with Java, we've prepared this handout. There will be no more than two
questions on the exam that deal with Java, out of about 10 questions.
Please do not put an extraordinary amount of effort into
studying for this part of the exam. Instead, please read this handout
carefully and use it to guide your studies. You should bring the handout with you to the final exam.
Problem Set #9 -
Remember to use reload on browser when downloading new versions. java-support.scm |
The java-eval.scm file has been debugged. Check for comments in the
header describing the changes.
The java-working.ZIP should be unzipped using the UNZIP.EXE that came
with the scheme distribution. After it is unzipped, make sure that
you put it in the right place (psets/ps9). Bug fixes were
incorporated into this file at 2:00 on 4/26.
(We are not officially supporting the athena java installation.)
For help, zephyr instance 6.001 (zwrite -i 6.001)
after subscribing (zctl sub message 6.001 \*) to it.
If people are unable to answer questions there, or if you have
comments, please send mail to
firstname.lastname@example.org. Good Luck.
Note: The detailed description of how to detect object
collisions suggested in problem 9 does not work.
Instead, modify the mouseDown method so that at every mouse click, the
distances between all pairs of distinct objects are calculated. A
collision occurs at that click if the square of the distance between
the centers of a pair of distinct things is less than or equal to the
square of the sum of their radii.
4/8 11pm: The Athena copies of the problem set files were out of date. If
you got things from there before april 7, make sure you reconcile
If you are trying to view your applets in Netscape, you may
run across a bug in Netscape's Java implementation, especially on
SGIs. An alternative way to view your applet is with the
appletviewer, which you can invoke by doing appletviewer
Test.html, assuming that Test.html is the html file that you're
using to display your applet.