Review for Lab Exam 1, Spring 2010

You should know how to:

  1. Create a simple auxilliary class for a drawable object and a test program to make sure it works. (Like MyTurtle)
  2. Create a simple animation class and a test program to make sure it works.
  3. Create programs that read in information from the keyboard, process the information, and use it to run your program.
  4. Create programs that read in information from a text file, process the information, and usie it to run your program.
  5. Create programs that do interesting things when you click on a mouse button.
  6. Create methods to do specific computational or graphical tasks which have parameters used in executing the tasks.

You should know how to do GraphicsPrograms and ConsolePrograms.

You will generally have to create the class from scratch.

You can look at old programs for help. I recommend printing out some programs and auxilliary classes that do tasks like the above.

There will be about 3 programming tasks. Don't panic if you don't remember how to do one of the tasks. Doing 2 will be a decent effort.

BE VERY CAREFUL TO BE SURE WHAT YOU TURN IN AT LEAST COMPILES. A program that compiles and does reasonable stuff will receive partial credit even if it doesn't work. A non-compiling program will receive almost no credit. To aid yourself in doing this, recompile often, not proceeding until you have fixed the errors causing it not to compile. Start with a program that has nothing in it but an empty public void init() method, an empty public void run() method, and an empty public static void main(String[] args) method. This should always compile. Then add methods or fill in methods one at a time and recompile as you do each part. (Similar comments apply for an auxilliary class. Start with a class that has nothing but an empty constructor in it. This should compile. Then add statements to the constructor and compile. Then add other methods (if needed) and compile. ...)

You are on your own. Other students and the instructor will not be able to help you.