CMIS 102A Computer science experiment with loops and time. Print this and fill in the table below as much as possible and turn it in. Make an applet that loops for a user-specified number of times. First have the loop do nothing (no statements in its body, meaning no input or output and no calculations, just {}) and time how long it takes to do a million, 10 million, 100 million and one billion loops. Include some indicator that the looping is finished. (While the long-running loops are running, start Windows Task Manager by holding down Ctrl Shift Esc keys and clicking the Performance tab to see how busy the CPU is.) Then change the program so it does some calculation in the loop, namely the square root of PI, and rerun the experimnets to see how long the loops take. Then change it so the "calculation" is a drawing (in the paint method of course) and rerun the timing experiments. Do it with a simple drawing of a line from (0,0) to (100,100), then with a filled oval to see if there is any difference in the time needed. 1M 10M 100M 1B loop no calc. loop sqrt(pi) loop 1. draw line 0,0 to 100,100 2. draw filled oval Now add this in paint: To display a running digital counter: g.setColor(Color.WHITE); g.fillRect(10,10,50,20); //blank out previous value g.setColor(Color.BLACK); g.drawString(""+i, 20,20); //draw new counter Put the square rooting of PI in the paint loop to slow down the loop counter display. Use this incantation to pause a program for sleepDelay milliseconds: Use it to slow down the running counter. Watch the Task Manager's CPU Usage to see that the CPU isn't doing much. try { Thread.sleep(sleepDelay); } catch (InterruptedException e) { } Done already? Make the sleepDelay a user-inputted value and experiment with different snooze times. Try a delay time of 1000 ms to make a digital clock. Change your web site's index.html so that it has html, head, title and body tags. Don't forget the end tags. Include the bg attribute of the body tag with a color that leaves links readable.