![]() Graphic by Keith Ohlfs |
Something Fishy
|
Elba Coor, the owner of Something Fishy (a chain of stores that sells pet fish and pet fish supplies), is looking to increase business through advertising. She thinks that a cute logo with clever cartoon-like graphics will increase the visibility of his brochures, newspaper ads, and web pages. So Elba has decided to hold a contest for the best Something Fishy logo. A logo should have the words "Something Fishy" and depict fish and fish-related supplies (fishtanks, fish food, filters, etc.). The official rules of the contest appear below. Entries will be judged based on technical excellence, creativity, and humor.
Elba is also a big fan of computers, and has recently become enthralled with Java. After attending the recent Java developers conference in New York, Elba is convinced that all applications should be implemented in "100% pure" Java. So Elba dictates that all entries into her logo contest must be Java applets that draw a picture using the methods of Java's Graphics class (e.g. drawLine, drawRect, fillOval, setColor, etc.). For example, here is a very simple fish that was drawn by the code below:
public void paint(Graphics g)
{
// Draw the tail
g.setColor(Color.black);
Polygon tail = new Polygon();
tail.addPoint(10,20);
tail.addPoint(10,80);
tail.addPoint(50,50);
g.fillPolygon(tail);
// Draw the body
g.setColor(Color.red);
g.fillOval(15,30,200,40);
// Draw the eye
g.setColor(Color.white);
g.fillOval(180,40,10,10);
}
You are an aspiring Java programming apprentice whose mentors have decided that Elba's contest is an excellent opportunity for you to exercise your skills in Java graphics programming. Following the rules to Elba's contest (below), you will submit your entry to the contest by placing your entry folder into your ps2 drop folder by 6pm on Monday, September 29. The entry folder should consist of the following files:
If you feel that the constraints in Rule #1 cramp your creativity, you are welcome (but not at all required!) to submit more than one logo. Only one submission needs to satisfy the constraints of Rule #1; the others can contain whatever you want.