Comp 212 Homework 3
Sort Animation

Due Friday April 14, 2000 10:00 AM.

This homework exercise serves as an exercise on sorting and animation.  It is based on the sorting animation example done in tutorial #08.

Problem Statement

Study the given MVC design and implementation of a GUI application for animating the sorting of an array of integers.  You are free to use the given code and modify it in any way you see fit to carry out the following tasks.  You must describe and explain any change you make to the given code.

  1. Write the necessary code to add a radio button to the GUI to allow the user to select heap sort for sorting and animation.
  2. Write the code to add a group of two radio buttons to allow the user to select animation using "dots" or animation using vertical "bars" as shown in the lecture.
  3. Document clearly the responsibilties for each class in your design.  In the README file, explain clearly in your own words how these classes cooperate with each other to get the job done.

Submission

The homework is due Friday  April 14, 2000 10:00 AM.  It is to be submitted electronically.  Your labbies will give you specific submission instructions in the upcoming lab tutorial.  No late submission will be accepted.  The complete homework set should contain the following:


alc@cs.rice.edu  dxnguyen@cs.rice.edu         Please let us know of any broken links             Revised April 07, 2000