week 1
feedback on syllabus quiz,
Student web research
SP1_DrawFigures: Study Chapter 1.
- Start with the DrawFigures3 Case study on p. 43.
- Replace "United States" with your name.
- Revise it to meet all the applicable
Programming Style Requirements.
Sp2_song instructions
Sp3 - Book instructions
Sp4 - pi instructions (You may use printf. See pp. 253, 257,259.)
Your modular design choices will be critical for this exercise.
After pi works, save it, print the listing.
Make a copy of pi and make the minimal number of changes to produce a similar estimate for
e the natural log base.
Your code must allow the user to select up to 100 million iterations.
and print a
partial table of your approximation vs. math.E. The table must have no more than 20 lines.
You must approximate e first using the
Factorial approximation: e = 1/0! + 1/1! + 1/2! + 1/3! + 1/4! + ... )
This version will break when tested with a fairly small number of repetitions.
You must revise the class comment explaining the maximum number that works with factorial. Save and print.
Create a copy of this version.
You must make changes to no more than 2 methods to replace the factorial with the exponential approximation.
Being able to change only one method will earn more points than having to change 2 methods.
Exponent approximation:
Your ultimate grade will also depend on minimizing the number of lines of code that must change
between your pi solution and your final exponential approximation of e.
Sp5 - shapes instructions
Sp6 - javelin instructions
Sp7 - walk instructions
Sp8 - names instructions
names.txt
names2.txt
Sp9 - personalities instructions
personalities.txt
Sp10 - Critter instructions
required Critter files (main, etc.)