Written assignment
(Due Sat. Sept. 7 by 8pm via email):
Programming assignment(Due Wed. Sept. 18 in class):
The purpose of this assignment is to help you remember everything you learned
earlier.
Write an applet and an application that simulate a slot machine. The user starts with some money and can choose how much to bet. Have at least 3 different winning combinations. Your program must keep track of the user's money.
Hand in:
How to use AWT components
How to use Swing components
Programming assignment(Due Mon. Sept. 30 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 27 via email):
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. 2)
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. 9):
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.
Adding a new piece of data to the beginning of a linked list is O(1),
so we should give the user a chance to use this feature.
Also, an add after method will let the user insert a new piece of data
into a sorted linked list and have the list remain sorted.
Include any exceptions that are needed.
Programming assignment (Due Wed. Oct. 16):
Write the addFirst and the addAfter methods for the
LinkedList class.
Test your
LinkedList class with the test program.
You will also need the List.java interface.
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 Mon. Oct. 21
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. 30
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. 27 - 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. 18
Print out and hand in the log for your server and the source code.
Due Nov. 25 - hand in source code for your server.
Print out and hand in the log for your server and all your source code.
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. 9
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 9.
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