Program 1


Description: This is a simple 2D Java program that allows the user to specify a regular polygon which
then spins. The appearance of the applet is:
Sample View Picture

What to turn in: You should turn in the source code for your java applet, and it should be named
'Programl.html' and 'Program1.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
'Program1.java'.

How to turn it in: Use the following command:
handin cs431 programl Programl.java

This tells the handin program to hand in 'Programl.java' to directory 'programl' in class 'cs431'. To
check to see that your handin was successful, type:
handin cs431 programl
1