![]() |
Assignment 3Submission
RequirementsAs stated on the assignment handout, you must:
Suggestions
You can use whatever data structure you want for the set. "Set" here is the loose definition, meaning simply a collection of values (since the set will sometimes have to include duplicate values during the summation). An array would work, but will be difficult to use as the only parameter--you will have to resize/copy it each time you call the method. You could implement your own ADT, or reuse one from the textbook. Probably the easiest solution is to look around in the At the end of the calculation, you may return either the set containing only the one remaining value, or just return that value. I strongly suggest you test your method using the main method of the class you write. The easiest test to use would be to create a set of the values passed in as command line arguments, and then pass this set to each of the two methods and print the results. An alternative is to just hard-code a few different sets in main, and then print out the results for each method given those sets. Grading:Out of 100 points:
|
~ztomasze Index :
TA Details: ICS211:
Assignment 3 http://www2.hawaii.edu/~ztomasze |
Last Edited: 09 Oct 2006 ©2006 by Z. Tomaszewski. |