Back to 211 Main Page

Mobius strip

Assignment 6

The Assignment

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

Submission

  • Email your assignment to ztomasze@hawaii.edu.
  • Send me DecisionNode.java and DecisionTree.java
  • Include a fully-qualified link to a working version of your applet.

Recommendations

You may change the applet (DecisionTreeApplet.java) when you post it online if you wish. That is, you can add or remove buttons, change the colors or layout, etc. However, your code must still work correctly with the original version of the applet.

Remember that, in your DecisionTree, all your nodes will either have two children or no children. (This is helpful to remember when writing hasNext()).

Grading:

Out of 10 points:

1 - Compiles and URL
The body of your email should include a full link (http://www.h...) to the page containing your finished, working applet.
2 - Documentation and Coding Standards
2 - DecisionNode
All the specified methods work correctly.
5 - DecisionTree
1 - Constructor, toString
1 - peek, nextYes, nextNo
1 - resetIterator, hasNext
2 - addDecision

Solution

Zach's Solution (zip file). Also contains a DecisionTree grader.

Nickles's Solution (java file). Includes both DecisionNode and DecisionTree in the same file.



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