Question: What sort of figure will be drawn by the following program? Can you draw a picture that will approximately match its appearance without running it
What sort of figure will be drawn by the following program? Can you draw a picture that will approximately match its appearance without running it first?
![1 import java.awt.*; 3 public class Draw7 { public static void main (String[] args) { DrawingPanel panel = new DrawingPanel (200, 200) ; 6. Graphics g = panel.getGraphics (); 7 for (int i 0; i < 20; i++) { %3D 8 g.drawoval (i * 10, i * 10, 200 -](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1606/7/9/9/3145fc5cfd2b66f91606799313701.jpg)
1 import java.awt.*; 3 public class Draw7 { public static void main (String[] args) { DrawingPanel panel = new DrawingPanel (200, 200) ; 6. Graphics g = panel.getGraphics (); 7 for (int i 0; i < 20; i++) { %3D 8 g.drawoval (i * 10, i * 10, 200 - (i * 10), 200 (i * 10)); 9. 10 11 2. 4.
Step by Step Solution
3.44 Rating (167 Votes )
There are 3 Steps involved in it
Note L Left TTop RRight BBottom Column1LRow1TColumn2RRow2B respectively i0 then L0 T0 R200 B200 i1 t... View full answer
Get step-by-step solutions from verified subject matter experts
