Notes for Week 5 / Assignment 5
Hello -
I just wanted to send out a couple notes on Assignment
5 and its extra credit...
First and most importantly, if you downloaded the Queue.java file
from /cs/cs60/as/a4 or a5 before Friday at 3:00pm, you might
have gotten a Queue class that declares its two data members
front and back as private, e.g.,
private QCell front;
private QCell back;
Check your Queue.java file (needed for Deque.java) --
if the "private" keywords are there, remove them; otherwise,
the derived class Deque won't be able to use "front" or "back"!
Second, I found it necessary to compile Queue.java before
my Deque.java would compile. I don't know whether this is
universally true, but it may help some people.
Lastly, if you do want to work on the extra-credit applet
here are some directions for getting it set up:
1) Copy the /cs/cs60/as/a5/ExampleApplet.html file
to your ~/public_html directory
2) Copy the /cs/cs60/as/a5/ExampleApplet.java file
to your ~/cs60/a5 working directory
3) Compile your copy of ExampleApplet.java
4) Copy all of the class files created to your
~/public_html directory with
cp *.class ~/public_html
5) Change permissions of all of your files in ~/public_html
to world-readable with
chmod 644 ~/public_html/*
That should do it! Then, pointing a browser to
http://www.cs.hmc.edu/~<yourloginname>/ExampleApplet.html
should load and run the applet.
To develop your maze-solver, just alter the code and repeat
steps 3-5 above.
Please let mw know if you have any questions or troubles
with any of these things!
Good luck,
Zach
PS. The Example Applets at www.cs.hmc.edu/~dodds/Applets do
seem to work now. I think the problem I was having in class
involved that particular machine and not the code, but
if things do go wrong, send me a note.
Hello - If you would like to submit files other than Deque.java or Maze.java for assignment 5, this note explains how. If you do not need to submit any other files (the usual case), you can safely delete this note. One reason you might want to submit files other than Deque.java and Maze.java is that you changed the Queue class when implementing Deque. Another possible reason is that you want to submit the extra credit (applet) file. There is a new submit script that will let you submit any file. To use it, run it from the directory contining the file you want to submit: /cs/cs60/bin/cs60submitfileFor example, /cs/cs60/bin/cs60submitfile ExampleApplet.java or /cs/cs60/bin/cs60submitfile Queue.java The script will ask you what assignment you're submitting for and then send you a confirmation after it's submitted, just as the ordinary script does. Please let me know if this doesn't seem to work for you. Zach PS. Again, this is at http://www.cs.hmc.edu/courses/2000/fall/cs60/assignments/notesA5.html PPS. If you are familiar with the "path" that your shell uses to find programs, you can add /cs/cs60/bin to your path and then not have to type that prefix when running cs60submitfile. Your path is most likely defined in your ~/.cshrc file.