*

Problem Set 1


Complete the following problem.

  1. Do problem 22 on page 47 of Sahni. You must provide a driver that reads in data from a file to populate your two-dimensional array and a value for theThreshold and then tests binarize. The driver must then print out the resulting array b.

  2. Your solution must be appropriately commented (see the guidelines posted here). You must test your solutions. Submit a folder that contains all of your code and the file(s) containing your test data to the folder /home/cs311/ps1 on the class server (ftp to 147.129.18.208 with the account name "yourLastName".)

  3. You may use any environment that you like to develop your code. I will test you code using the tools from the JDK (eg, javac and java). I will use the Java 2 implementation of the JDK (which is also used in the book). You can obtain the Java 2 JDK free at http://java.sun.com/j2se/


    Return to John Barr's Home Page

    Last Modified: 14 August 2001

    THIS PAGE MAINTAINED BY: John Barr, Ithaca College