// PROJECT 4 Narada Brooks // String title= "PROJECT 4: array of integers"; String help= "Press first letter of a function (or 'q' to quit)"; String author= "NARADA BROOKS"; int[] z= { 888, 44, 24, 76, 105, 333, 71, 80, 106, 2, 99 }; int many= z.length; void setup() { size( 500,400 ); } void draw() { background( 250,20,250 ); fill( 0, 250, 100 ); textSize(16); int next=20; // Show the numbers in a line. float x=50, y=50; for (int j=0; j a[w]) w=j; } int tmp; tmp= a[m-1]; // Save last element of array. a[m-1]= a[w]; // Store biggest at end. a[w]= tmp; } void small( int a[], int m ) { // Move the smallest number to the beginning of the array // (Swap, to keep all numbers.) int w=0; for (int j=1; j