1/31/08 Notes

To Notes

CSC 212 -- 1/31/08

 

Review Questions

Here are the answers.

  1. Construct a trace table for the InsertionSort Algorithm for this array:

  2. Modify the FindMin.java example so that it finds the Person object of minimum age.

  3. Modify the InsertionSort.java Example so that it sorts Person objects.

 

Sorting

 

Reading Data from a File