Create a Java Applet that uses two integer (int) variables x and y to place the picture of four circles on the screen. Alternate the colors by setting the g.setColor method . Also, use the g.drawString to place your name above the circles. Solution import java.applet.*; import java.awt.*; public class Bullseye extends Applet { public void paint(Graphics g) { int appletHeight = this .getSize().height; int appletWidth = this .getSize().width; for ( int i=8; i >= 0; i--) { if ((i % 2) == 0) g.setColor(Color.red); else g.setColor(Color.white); // Center the rectangle int rectHeight = appletHeight*i/8; int rectWidth = appletWidth*i/8; int rectLeft  = appletWidth/2 - i*appletWidth/16; int rectTop   = appletHeight/2 - i*appletHeight/16; g.fillOval(rectLeft, rectTop, rectWidth, rectHeight); } } } .