CS 2073
Spring, 2001

General Rules for Programming Assignments



Turn in the following, stapled together and in order:
  1. Cover sheet with your name, assignment title, and date.
  2. Output
  3. Source code
  4. Tape your diskette to the cover sheet. The diskette must be labeled.


Output
  1. Points will be given for output appearance, as well as correctness.
  2. Output should be neat, easy to read, and appropriated labeled (or in a table).
  3. Print real data using the correct number of significant digits; results should not have more precision than the operands.


Source code
  1. Points will be given for code appearance and documentation, as well as correctness.

  2. Comments at the top of the program are to include the following (see distance.c):
    Program name
    Brief description of what the code does (problem statement)
    List of input data
    List of output data
    Programmer's name and date

  3. Put comments at the top of code blocks as needed to briefly explain a section of code.

  4. Indent consistently.

  5. Use appropriate data types:
    constants:              #define
    integer variables:   int   or   long
    real variables:       double   or   long double   for extra range and/or precision.


Input
  1. If inputting from the keyboard, print a prompt message with specific input information.
  2. If inputting from a file, include the input file on your diskette.