|
|
Assignments and Exercises
- Assignment A7. This project is for those who are not going to take
the final. It should take 1.5 to 2 hours. It deals with changing an
existing GUI program to do something different. And we guide you in
making the changes. It is due Wednesday, 12 May, at 11:59, on the CMS.
a7.doc a7.pdf TicTacToe.java Square.java Click
here to see the tic tac toe applet
- Assignment A6. Finding links on webpages. Due on the CMS 2May 2004
by 11:59. doc file pdf
file.
TagIterator
LinkIterator Set
This is a link to the first page
of a test web site for this assignment. It has three pages. Our testing
program will be testing your program with some more elaborate pages.
There are here only to get you started. The URL for the first page is:
http://www.cs.cornell.edu/courses/cs211/2004sp/testA6/page1.html
Here is a zip file with html pages and images. Use it to test: testa6.zip
Download the zip file and put it in some directory and unzip it.
You can then test on your machine without having to be on the internet.
However, you have to know whaaaaaat url to use for the first webpage,
index.html. You can determine this by trying to load a local file
into your browser --a navigation window should appear, and you navigate
to the directory and select the file. Then, the file will be loaded
into your browser and the URL will appear in the url field. I can't
tell you what to use for a URL; it differs from operating system to
operating system.
When dealing with files on your computer, you maa have trouble with
the URLs. Suppose you nwant the following for the URLs s1 and s2 (e.g.
on a Mac):
s1: file:///Volumes/work17/CS211/testa6/index.html
s2: file:///Volumes/work17/CS211/testa6
Then do this:
String s1= "file:///Volumes/work17/CS211/testa6/index.html";
String s2= "file:///Volumes/work17/CS211/testa6";
URL us1= new URL(us1);
URL us2= new URL(us2);
s1= us1.toString();
s2= us2.toString();
On the Macintosh (Panther operating system), the final value of s1 looks
slightly different from the initiall value of s1.
- Assignment A5. Implementing linked lists recursively. Due on the CMS
SUnday night, 11 April. powerpoint
pdf file RList.java
- Assignment A4. A link enumerator. Due on the CMS Friday night, 19
March. html file pdf
file
Use our file TagIterator.java
- Assignment A3. A tag enumerator. Due on the CMS Friday night, 05 March.
html file pdf
file
- Assignment A2. The 8-Queens problem. Due on the CMS Friday night,
20 February. Word file
pdf file
Solution
- Assignment A1. Recursive functions. One question
to be submitted in class on Tuesday, 10 February, and the program to
be submited on the CMS Wednesday, 11 February.
Start with this file: A1.java.
Solution
|