Assignment 3

The assignment consists of two separate parts.

  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.

  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:

    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.

Try to clearly document your code for the two parts. Also, for each part, write few paragraphs (about a page) explaining what you have done. Furthermore, if you use other work (e.g. other programs, books), please make a reference (or links) to them.

Compile and Run: How to?

Date Due

Email the URL of your report to the TA by October 3, 1997. For any questions you may have about this assignment, please get a hold of Saleh or Nancy.

Saleh Elmohamed
Last modified: Fri Sep 26 23:15:58 EDT 1997