Modify a text file: $/peoplesort.java
$/peoplesort.java
//// Project 5 beginnings. //// WHO??? String title= "Project 5"; String author= "Anthony Porras"; float sidewalk; String[] names={ "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta", "Eta", "Theta", "Iota", "Kappa", "Lambda", "Mu" }; //-- Person a, b; int many=5; Person[] people= new Person[many]; //// SETUP. void setup() { size(800, 600); sidewalk= height-150; reset(); } void reset() { /* a= new Person( ); b= new Person( ); */ for (int j=0; j
p[iTallest].h ) iTallest=j; } return iTallest; } int whereShort( Person[] p, int m ) { int iShortest=0; for (int j=1; j
1; k--) { println( "*** k="+k ); array( q, m ); tall( q, k ); array( q, m ); } } void array( Person q[], int m ) { String s="****\n" ; for (int j=0; j