Documentation for any program falls into two categories: internal and external. Internal documentation consists of comments included in the program, use of meaningful identifiers, and consistent and proper use of indentation and spacing that helps convey the structure and meaning of the code. External documentation is typically written as a document separate from the program itself; it usually consists of a user guide and sometimes includes a detailed description of the design and implementation features of the program. For this course, you will be expected to follow the following documentation standards:
/* * <filename> - <brief title and/or description of program> * * written by: <your name> * <wpi login name> * <your section number> * <date> */
/* * <function name> * * PRE: <list of pre-conditions, usually stated in terms of input arguments> * POST: <list of post-conditions, usually stated in terms of output arguments> * */pre-conditions are conditions that must hold prior to the invocation of the function. post-conditions are those conditions that are true after the function returns.
if (i == 0) { done = true; j++; }
You will be expected to submit an external documentation file along with each programming assignment you do this term. The format to be followed can be found in the description of the Computer Science Department Documentation Standard. You are to complete the following sections of the documentation file for every homework assignment:
Author (your name) Date Version (1.0) Project ID (HWx) CS Class (CS 1005) Programming Language Problem Description Program Assumptions and Restrictions Interfaces (just the "User" section) Implementation Details (just the "Variables" section) How to build the program Additional Files Test Procedures Performance Evaluation (include only if you have special concerns or wish to point out features of the program) ReferencesNote that the sections on Overall Design and Implementation Details need not be completed; for the most part, these will be given to you as part of the assignment. The program source code and Results (script file) will be turned in as separate files, and need not be included in the documentation file. Any sections of the documentation file that are not completed should be marked N/A for not applicable.