CS 2073
Spring, 2001
General Rules for Programming Assignments
Turn in the following, stapled together and in order:
- Cover sheet with your name, assignment title, and date.
- Output
- Source code
- Tape your diskette to the cover sheet. The diskette must be labeled.
Output
- Points will be given for output appearance, as well as correctness.
- Output should be neat, easy to read, and appropriated labeled (or in a table).
- Print real data using the correct number of significant digits;
results should not have more precision than the operands.
Source code
- Points will be given for code appearance and documentation, as well as correctness.
- 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
- Put comments at the top of code blocks as needed to briefly explain
a section of code.
- Indent consistently.
- Use appropriate data types:
constants:
#define
integer variables:
int or long
real variables:
double or
long double for
extra range and/or precision.
Input
- If inputting from the keyboard, print a prompt message with
specific input information.
- If inputting from a file, include the input file on your diskette.