public class ArrayPracticeClient3 { public static void main (String[] args) { // get an integer value, num, from user. Make sure value is // greater than or equal to 1 // Ask the user for num sets of (x,y) coordinates (each should be a double) // Place the x values in a separate array from the y's // Considering each location a "point mass" (ie, equal mass of 1 each) // Calculate the coordinates of the center of mass. // The average x is the x-coord of the center of mass. // The average y is the y-coord of the center of mass. // Print out all coordinates putting in the ()'s and ,'s. // Print out the center of mass // Find the coordinates with the minimum x; print this location. // Find the coordinates with the maxium x; print this location. // Find the coordinates with the minimum y; print this location. // Find the coordinates with the maxium y; print this location. // Bounding Box Calculations: // Print the minimum x & minimum y as a coordinate. // Print the maximum x & maximum y as a coordinate. // fyi, all of the locations read in line within a rectangular // area delineated by these two coordinate positions System.out.print("\n\n"); } }