Homework 6

CS17

60 pts., due May 1

For each program, you should turn in the source code and a print-out showing a sample run (print the output window). Follow the guidelines in Section 3.7 for the style of your programs. In addition:

  1. Use descriptive names for variables and named constants. In addition, write a brief comment for each variable and named constant describing how it is used.
  2. Use uppercase characters for named constants with underscores to separate ``words.'' Use lowercase characters for variables with either underscores or capitalization to separate ``words.''
  3. If a formula you use in a statement isn't obvious, comment it. In general, comment any non-obvious statement or statement block.
  4. Your program should be modular (i.e., use several functions). No function should be longer than a single page.

Documentation will account for 30% of your grade.

Solve Programming Problem number five on page 422 of Uckan.



Thomas P. Kelliher
Sun Apr 21 16:00:07 EDT 1996
Tom Kelliher