// display all elements of an array (with bar charts, etc.) float [] a = {99.1,33.2,44.3, 22.4, 66.7}; int many= a.length; int nextX, nextY; // coords of next display. final int FIRSTX=10, FIRSTY=20, SPACING=17; float multiplier; float big=100; void setup() { size(640,480); } void draw() // Draw a frame { //big= biggest( a ); //big= biggest( a ); int k= whereBig( a ); big= a[k]; // find biggest value in a multiplier= (width-90)/big; scene(); show(); } void scene() // Draw Scene { background(0); } void show() //Show all elements of the array a[] { nextX= FIRSTX; nextY= FIRSTY; for (int j=0; j=1) float result= z[0]; for(int j=1; j < z.length; j++) { if(z[j] > result) result = z[j]; display( z[j] ); } return result; } int whereBig(float[]z) { int w=0; for( int j=1; j < z.length; j++) { if(z[j]>z[w]) w=j; } return w; }