CMIS 102A Lab exercise 1. Make a program that is like the Explosion applet. Have the colors be totally random by doing this: g.setColor(new Color((int)(Math.random()*256), (int)(Math.random()*256), (int)(Math.random()*256))); 2. Make a program that is like the Sticks applet. Think about how to connect one line to the next line to be drawn. And then how to connect the last one to the first. 3. Make a program like the Bouncing applet. The "ball" has a current direction (NE, SE, SW, NW, which can be an int variable) and moves in that direction until it hits a "wall" when it "bounces" in the natural way (e.g. if going NE and hits top wall will ricochet off it to the SE direction, if going NE and hits right wall it changes to NW). Have the time delay be done by the Thread sleep: try { Thread.sleep(naptime); //naptime is int variable in ms } catch (InterruptedException e) { } A sleep time of about 33 ms corresponds to one frame of film.