CS& 141 Java course web page Shoreline Community College

Updated 1 APR 2011


Start here: Overview, important assignment information and requirements



Solo Program (SP) assignment instructions may be posted early;
but, they are subject to change until the Wednesday before they are due.

All required SP assignment materials must be delivered
by the date/time specified in the current Syllabus/Schedule.

Weekly Solo Program assignment instruction links

week 1

feedback on syllabus quiz, Student web research
SP1_DrawFigures: Study Chapter 1.
  1. Start with the DrawFigures3 Case study on p. 43.
  2. Replace "United States" with your name.
  3. 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: e = \lim_{n\to\infty} \left( 1 + \frac{1}{n} \right)^n
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.)

Each week

  1. Bring questions from the assigned reading

Get the Java Development Kit and other resources

return to the rshields home page
OLD Winter 2011 Syllabus/Schedule