Fall2007.CSCI220Homework1 History
Show minor edits  Show changes to markup
Changed line 2 from:
Due Dates: Friday, Sep. 14, 2007\\
to:
Due Dates: Monday, Sep. 17, 2007\\
Changed lines 2829 from:
Email your piApproximator.py file as an attachment.
to:
Email your piApproximator.py file as an attachment.
Changed lines 3031 from:
Email subject should be "Assignment #1").
to:
Email subject should be "Assignment #1".
Changed lines 2831 from:
Email your piApproximator.py file (email subject should be "Assignment #1") to manaris@cs.cofc.edu.
(If you do the bonus, submit both programs in the same email.)
to:
Email your piApproximator.py file as an attachment.
Email subject should be "Assignment #1").
My email address is manaris@cs.cofc.edu.
(If you do the bonus, submit both programs in the same email, as attachments.)
Changed lines 1415 from:
Do Exercise 15 on p. 74 of the text to approximate the value of pi.
to:
Write program piApproximator.py that approximates the value of π by summing the terms of this series: 4/1  4/3 + 4/5  4/7 + 4/9  4/11 + ... The program should prompt the user for n, the number of terms to sum, and then output the sum of the first n terms of this series.
Have your program subtract the approximation from the value of math.pi to see how accurate it is.
(This is exercise 15 on p. 74 of the text.)
Bonus
Use ideas from chaosTurtle.py to visualize how close your approximation is. (Hint: Draw two lines, one with length equal to π*100, and the other with a length that slowly increases as the approximation is getting better.
Do this in a separate program, visualPiApproximator.py .
Changed lines 2829 from:
Email your piApproximator.py file (email subject should be "Assignment #1") to manaris@cs.cofc.edu.
to:
Email your piApproximator.py file (email subject should be "Assignment #1") to manaris@cs.cofc.edu.
(If you do the bonus, submit both programs in the same email.)
Changed lines 1819 from:
Email your .py file, with subject line "Assignment #1", to manaris@cs.cofc.edu by the due date.
to:
Email your piApproximator.py file (email subject should be "Assignment #1") to manaris@cs.cofc.edu.


