Computer Science 381
Programming Unix in C

Winter Immersion 2014, The College of Saint Rose

Instructor and Course Information

Instructor:

Dr. James D. Teresco, Albertus Hall 400-2, (518) 485-3755
Electronic mail: terescoj AT strose.edu (best contact method)
Twitter: @JTeresco_StR_CS
Class URL: [Link]
Class hour: None - this is an online course
Office hours: by email any time, in person by appointment only

Texts

The required text for the course is The C Programming Language, 2nd Edition (Prentice-Hall, 1988, ISBN 0-13-110362-8) by Brian W. Kernighan and Dennis M. Ritchie. This is available from the Saint Rose Bookstore (and elsewhere). If you buy elsewhere, be sure to get the correct edition. It's a handy book for any computer scientist to own, so think of it as an investment.

Course News

Submission Guidelines

Your submissions for lab assignments will include several types of items. Different requirements apply to each, as described below. It is important that you adhere to file format and naming requirements to facilitate grading. Submissions that do not meet these requirements will not be accepted.

Lab Questions
The answers to all "lab questions" for a particular lab should be included within a single plain-text file named labn.txt, where n is the lab number. The file should start with your name and the lab number, followed by line-wrapped text responses to each lab question in the assignment. Your file should be appropriately line-wrapped for easy reading in a window or on a printed page with a width of 80 characters.

Note: for lab questions that ask you to draw a memory diagram, you have a few options. You may attempt to represent the memory with plain text, but that is difficult to construct and read. Ideally, you would use a drawing program and submit a PDF file, but you are also permitted to draw the diagram on paper and submit a scan or photograph, as long as the diagram is legible in that form.

Output Captures
You will sometimes be asked to capture the output of an existing Unix command or one of your programs in a file for submission. The file name to use for each such task will be specified in the question.
Practice Programs
Your submissions for practice programs are graded primarily on correctness, but you will be required to include your name at the top of the program, and you must use the file name specified.
Programming Assignments
These are the most formal submissions and will be graded on design, documentation, style, correctness, and efficiency (where appropriate). A good design will use an appropriate algorithm, data structures, and language constructs to solve the problem. A well-documented program will include a comment at the top of each file that includes your name, the assignment, and a description of the contents of the file. There should also be comments for each structure definition, each function definition (including a brief description of the function's purpose, its parameters, and return value), each variable or group of related variables, and any section of code whose purpose and/or behavior is not obvious from context or the code itself. Style requirements include appropriate formatting (sufficient and consistent indentation, spacing, and punctuation, wrapping long lines of code), good use of constants, and meaningful and appropriate names for variables, functions, constants, and parameters. Correctness, of course, requires the expected output be produced for a set of test inputs (which will normally not be provided in advance). Efficiency will be more important in some assignments than others, and requires that the program does not do any unnecessary computation or use any more memory than needed. This includes returning memory to the system when using dynamic memory management. And, of course, you must use the file name specified.

Related Information and Links