Extra Credit:
Written assignment
(Due Thurs. Sept. 6 by 8pm via email):
Programming assignment(Due Wed. Sept. 19 in class):
The purpose of this assignment is to help you remember everything you learned
earlier.
Write an applet and an application that show an animation of a dog looking for his bone. At the beginning of a game, the dog and the bone will appear at random locations. The user specifies what direction the dog goes for the first move. The dog will start out in the direction the user specifies, but will change direction randomly at random times, moving until it finds the bone. If the dog hits a wall, it will go in the opposite direction. The program will show the dog looking for the bone and will tell how many moves the dog has made. When the dog finds the bone, the program stops.
Hand in:
Programming assignment(Due Wed. Sept. 26 beginning of class):
Pick a web/database project to work on for the rest of the semester.
Write an applet that reads a file of data and allows the user to search
for items in the data. The first line of the file is the title of the
database. The second line will contain the names of the data fields separated
by #.
Subsequent lines contain data records, with data fields separated
by a #. Your applet will read in the title and display it with animation.
Then your applet will read in the data and put up a GUI that allows the
user to search for information. All fields will be treated as Strings.
You decide the topic of the database. You may write your own code or
modify the
example used in class.
(
annotated code)
Hand in: Hardcopy of the applet and its output
Programming assignment(Due Fri. Sep 29 in class):
Use Forte to compile and run the program you wrote for the last assignment.
Write a short essay describing the differences between using an IDE and
using Sun's JDK. Tell what you, personally, like and dislike about each.
Assignment (Due Wed. Oct. 3)
Pick one of the sorting algorithms on the web page for your reading,
print it out, and compute its computational complexity(Big-O). Show
all your work on the print out.
Hand in:
the printout of the sorting algorithm with all the work you did to
compute Big-O. I want to see your g(N), and the values needed for
c0 and N0, as well as Big-O.
Programming assignment (Due Wed. Oct. 10) - Make your class that holds the data Comparable using one of the fields of the data as the information to compare when sorting. Use one of the sorting algorithms to sort the data after it is read in.
Hand in:
Hardcopy of the applet.
Given the interface we started in class, write the insertAtTail method, and fix the insertAtHead method for the LinkedList class so it will work with the new tail variable we decided we wanted. Test your LinkedList class with the test program.
Due Wed. Oct. 12
Hand in: Hardcopy of your LinkedList class and hardcopy of the output
of the test application that I wrote. (If you don't know how
to do this, click here.)
Due Wed. Oct. 19
Hand in: Hardcopy of your LinkedList class, your test application class
and hardcopy of the output of the test application that you wrote.
Due Oct. 31
Hand in: Hardcopy of your Stack class and your application. Email me
your source for both.
Create a database using Microsoft Access for the data you used in the earlier project. Write a Java application using the JDBC to allow the user to search the database. Your application must have a GUI that allows the user to search without knowing any SQL and it must display the results of the search. Use good Object Oriented Design so you can reuse your gui in an applet you will write later.
Due Nov. 30 - hand in source code for your application, a screen shot of a query, and a screen shot of the results of the query.
Due Nov. 14
Print out and hand in the log for your server and the source code.
Due Nov. 21 - hand in source code for your server.
Print out the log for your server and the source code. Put them in my mailbox in the Faculty Lounge on the 3rd floor.
Write a server that connects to your database, reads in SQL queries from
a Socket and passes them on to the database
(like your database application did).
Due Dec. 7
Homework - have a good Thanksgiving.
Homework - write an applet that connects through a server to your
database. It only has to run using appletviewer to run the applet
(rather than a web browser) and localhost as the server machine.
Due Dec 7.
Hand in - source code for your server and your applet.
Hand in - source code for your applet and server.
Last Updated by S.L Bartlett :
Sunday, April 07, 2002, at 19:27:47 EDT