Tom Blaylock CPS615

Assignment 3

The first problem dealing with calculating PI from the infinite series

4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 + ...

is an application contained in the file PIJava.java. It loops through these calculations to increasingly refine the value of PI. It is a short application creating a small table showing the first instances of each value of 3.14, 3.141, 31415, and 3.14159. When these values have all been reached, the loop is exited and application is complete.

I found the Java language to be a very useful tool in this application. It required a much smaller learning curve than some of the other higher level languages. As a learning aid I purchased Java Programming for Dummies, by Donald & David Koosis and published by IDG Books Worldwide. It included a CD with the JDK version 1.1.1.

Problem 2 was a little more difficult. Using an example from the book above, I tried to remove the flicker using double buffering but kept getting a few errors when running so I commented out my changes. I also added 2 checkbox choices to show a grid on and grid off. The copy of ShowData.java program will display the grid, but will not make it disappear. I will continue to test until it works properly. It can be viewed using ShowData.html.