// // Hint for Programming Project 3.17 (page 173). //*********************************************** 1) You may have among others the following constants declared before paint method: private final int MIN_DIAMETER = 5; private final int MAX_DIAMETER = 30; private final int MAX_X = 370; private final int MAX_Y = 170; 1) To paint several circles of random color, diameter, and location, use Math.random() 2) Have a for loop (to scan the number of circles to draw) in the paint method 3) Declare the following integers: int x, y, diameter, red, green, blue; 4) et the background black: setBackground (Color.black); 5) Compute x and y to be used as cooedinates for the circles. x = (int) (Math.random() * MAX_X); y = (int) (Math.random() * MAX_Y); 6) Compute the RGB values as random bumbers between 0 and 255 r = (int) (Math.random() * 256); g = (int) (Math.random() * 256); b = (int) (Math.random() * 256); 7) Use the RGB values as parameters in the setColor method: page.setColor (new Color(r, g, b)); 8) Compute the diameter as follows: diameter = (int) (Math.random() * MAX_DIAMETER) + MIN_DIAMETER; 9) Draw the circles using the x, y and diameter parameters by invoking drawOval method: page.drawOval (x, y, diameter, diameter);