Design, write, and test two programs

Design, write, and test two programs, each of which draws one hundred random circles. One program should use a while statement, the other, a for statement.;The circles should be placed at random locations, with random diameters and colors. Each circle should use two random colors: one for the fill (interior), and one for the stroke (circumference).;Each circle must fit entirely within the drawing window, however, circles may overlap.;6.5);//********************************************************************;// Bullseye.java Author: Lewis/Loftus;//;// Demonstrates the use of loops to draw.;//********************************************************************;import javax.swing.JFrame;public class Bullseye;//—————————————————————–;// Creates the main frame of the program.;//—————————————————————–;public static void main (String[] args);JFrame frame = new JFrame (“Bullseye”);frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);BullseyePanel panel = new BullseyePanel();frame.getContentPane().add(panel);frame.pack();frame.setVisible(true);6.6);//********************************************************************;// BullseyePanel.java Author: Lewis/Loftus;//;// Demonstrates the use of conditionals and loops to guide drawing.;//********************************************************************;import javax.swing.JPanel;import java.awt.*;public class BullseyePanel extends JPanel;private final int MAX_WIDTH = 300, NUM_RINGS = 5, RING_WIDTH = 25;//—————————————————————–;// Sets up the bullseye panel.;//—————————————————————–;public BullseyePanel ();setBackground (Color.cyan);setPreferredSize (new Dimension(300,300));//—————————————————————–;// Paints a bullseye target.;//—————————————————————–;public void paintComponent (Graphics page);super.paintComponent (page);int x = 0, y = 0, diameter = MAX_WIDTH;page.setColor (Color.white);for (int count = 0, count <_3d_ _thickness29_="" check="" for="" narrow="" _box3b_page.setcolor="" _28_color.yellow29_3b_page.fillrect="" _28_x2c_="" _y2c_="" _width2c_="" _height29_3b_else3b_if="" _28_height=""><_3d_ _thickness29_="" check="" for="" short="" _box3b_page.setcolor="" _28_color.green29_3b_page.fillrect="" _28_x2c_="" _y2c_="" _width2c_="" _height29_3b_else3b_page.setcolor="" _28_color.white29_3b_page.drawrect="">

&nbsp;