g.setColor(Color.yellow); g.fillRect(50,50,xsize-100,ysize-100);
< applet code=Hwa2.class width=300 height=200 > < /applet >
A new iteration is done by clicking on the Iterate button. The value of the iterate x is shown by the y coordinate while the number of iterations is shown by the x coordinate. The x scale runs to 10 -- where is iterate 11 plotted ? The x-axis always shows (up to) the last 10 iterations.x_(n+1)=ax_n(1-x_n)