CS 4773 Object Oriented Programming, Spring 1997
Assignment 3
Assignment 3 has 3 parts.
Parts 0 and 1 are due on Thursday, February 20 and
Part 2 is due on Tuesday, March 4.
Part 0:
Register your home page with the department. To do this, access
http://www.cs.utsa.edu and follow the following links:
Students, CS Division Student Directory, directions.
Alternatively, you can just click
here
Part 1:
- Make a directory called assign3a at the same level as
your assign2 directory from assignment 2.
- The applet in this part of the assignment will be called jotsatest
and will be in a package
username.assign3a where you use your username for the
first part of the package name.
- The applet will have three buttons arranged as in the diagram below.
When it starts up, two messages with the following form will
appear on the screen:
This applet was written by ...
The move time is 5000 milliseconds
and an oval similar to the one in assignment 2 will also be shown.
- The applet will have an integer variable called move_time
which will be initialized to 5000. The button marked Double Speed
will cause this value to be divided by 2. The button marked
Half Speed will cause this value to be doubled.
The value of this variable is what is displayed on the second line of
text as described above.
- When you click and release the mouse button, the oval will move
along a straight line so that it ends up with its center at the
position of the pointer when the mouse button was release.
The oval will move over the first string and under the second.
You should be able to do this operation any number of times.
- When the button labeled Reset is pushed, the oval will
return to its original position and the move_time will
be reset to the value 5000.
- Use JOTSA to perform the motion. A current version of JOTSA can
be found in /usr/local/courses/java/jotsabeta. This
should be in your CLASSPATH.
- When this is working, make a link to it in your course home page.

Part 2:
- Make a directory called assign3b at the same level as the
assign3a directory.
- The applet in this part of the assignment will be
in a package
username.assign3b where you use your username for the
first part of the package name.
- Pick two sorting algorithms and write an applet which illustrates these
sorting algorithms. Be creative, but gear this towards a student
in CS 1723.
- When this is working, make a link to it in your course home page.
Hand in copies of your source code for all parts.
Print these out two per page.
Also include a printout of your makefile.
Use the burst page from one of your printouts as a cover page.
On this cover page state clearly exactly what worked and what did not.
Be prepared to make a short presentation in class on your solution to Part 2.
Part 2 is considered a major assignment. It counts as 1/3 of your
major assignment grade. The presentation is 1/3 of the grade for Part 2.