CS 112
Spring 2005
Ileana Streinu

Homework 4

Thursday February 17, 2005
Due Wednesday 2/23/2005 by midnight


The homework has several parts. To avoid conflicts, you must develop each program in a separate directory (Hw4I, Hw4II and Hw4III, all in Hw4).

Part I

Using the GUI from the previous homework, develop a full program for sorting an array of integers using both Selection and Insertion Sort, using the algorithms and the implementation sketches developed in class today.

Part II

Use Variations on a Cookie Jar for model and inspiration. Test your class by including it in a very simple applet, where the information in the jar is illustrated simply by priinting on the Java console or on the screen.

Part III


Ileana Streinu