Assignment 3
CPS-615
David Figatner

Assignment:

1.Write a Java application that calculates the value of PI from the infinite series :

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

     Print a table that shows the value of PI approximated by one term of this series, two terms,
     and so on. Observe how many terms of the series you have to use before you first get 3.14,
     3.141, 3.145, and 3.14159.

Solution to 1

2.Change the Java applet ShowData.java and its accompanying datafile and ShowData.html to
     improve its appearance or to work with a different set of data (and file format). Here are
     some ideas to improve the appearance of the data as it is displayed:

          Remove flicker by double buffering.

          Make a control such as a checkbox to display a data grid.

          Allow for overall labels, labeling the data units in the x and y direction, or labeling the
          values of the data points themselves.

     If you have other ideas to improve/change the appearance, perhaps to fit into an application
     or a problem you have in mind, then, yes, go ahead and try them out.

Solution to 2