Back to 211 Main Page

Mobius strip

Assignment 5

The Assignment

http://learnu.ics.hawaii.edu/~nickles/211_Spring_2005/labs/sorting/sorting_efficiency.htm

Submission

  • Email your assignment to ztomasze@hawaii.edu.
  • Attach the source code of your Java application. Send me only the source code (.java files); do not include the .class or any other files. Do not zip or otherwise bundle the .java files.
  • Send me BubbleSort.java

Recommendations

The coding portion of this lab will be worth 5 points, and the lab report portion will be worth 5 points.

The code is due by 11:59pm on the date due, as normal.

The code will compile under Java 1.4 and later (where the Calendar getTimeInMillis() method is public), but not under 1.3 (where the method is protected). To get the code to compile on uhunix, you can change:

clock.getTimeinMillis();
to:
clock.getTime().getTime();

Either form is acceptable when you submit your assignment. (I will do a automated search and replace, and then compile under 1.3.)

Grading:

Out of 5 points:

1 - Compiles
1 - Coding Standards
You may document this assignment however you see fit (with JavaDoc, with internal comments, or not at all). You must put your name in your BubbleSort.java file somewhere however.
3 - sort method of BubbleSort
Must correctly use the bubble sort algorithm. Do not change the method signature.

Solution

Zach's BubbleSort.java.



~ztomasze Index : TA Details: ICS211: Assignment 5
http://www2.hawaii.edu/~ztomasze
Last Edited: 29 Mar 2005
©2004 by Z. Tomaszewski.