Program 2

Description: Your program should display a spaceship which can be moved through the viewing area
using the mouse. The user should be able to rotate the ship in both clockwise and counter-clockwise
directions, and to speed up or slow down the rate of rotation. The ship should also have a concept of
forward and reverse thrust which can be used to speed up or slow down the ship. The thrust should
affect the velocity of the ship in the direction of the ship's current orientation.

The viewing area should be toroidal, meaning that the left side wraps to the right (and vice versa) and
likewise the top wraps to the bottom (and vice versa).

A solution will be made available in ~cs431/Program2.

What to turn in: You should turn in the source code for your Java applet, and it should be named
'Program2.html' and 'Program2.java'. Other .java files can be turned in as well, but your main program
should be in 'Program2.java'. We will compile and run your applet using javac and appletviewer so
there is no need to turn in any class files. Make sure your program compiles before you turn it in--we
cannot grade something that does not compile.

Note: Don't just rename your program and turn it in--it won't work. Java must have the filename be the
same as the class name of the class in the file. It's best to develop your program using the name
'Program2.java'.

How to turn it in: Use the following command:
handin cs431 program2 [files]

shirley at cs.utah.edu
wmartin at cs.utah.edu
rgraham at cs.utah.edu
1