CS167 C Programming
Fall 1999

Instructor

Roger Hartley, SH 148, telephone 646-1218
Office Hours: Tuesdays, 2:00 - 4:00 pm; Fridays, 2:00 - 4:00 pm. Also by appointment.

Where and when

Room: SH115
Time: 9:30 - 10:20am
For the first four or five weeks, the Monday session will be spent in the J. Mack Adams lab. SH118.

Textbook:

C How to Program, 2nd. Edition, by Deitel and Deitel, published by Prentice Hall, 1994. You may find a reference book is also useful, especially for future use. A good one is C, A Reference Manual, by Harrison and Steele, published by Tartan, Inc.

Course outline

This course teaches the fundamentals of programming in the language C, a widely accepted standard for many sorts of computer application, including system software, graphics, scientific programming and, increasingly in business as well. It is the standard language for the UNIX operating system, used here at NMSU, as well as at the majority of other university campuses. It is in use all over the world.

Syllabus

The breakdown by weeks is:

[1] Introduction: computers, languages, compilers, software development

[2-3] Overview: variables and assignment; control flow; input/ouput; modularity and functions

[3-4] Low-level syntax: tokens, names, operators, keywords, punctuation, layout

    High-level syntax: expressions, statements, conditions, loops, function calls, parameters and arguments

[4] Understanding program execution: program state, instrinsic types, simple I/O

[5-7] Structured programming

[7-9] Functions: prototypes, libraries, header files, scope

[10-11] Pointers: arrays, character strings

[12-13] Files and advanced I/O

[14-15] Structures

[16] Review

 

Calendar

[1] 8/25 First day of classes

[2] 9/3 Deadline for registration/course addition

[3] 9/6 Labor Day holiday

[8] 10/13 Mid-term test

[9] 10/20 Last day to drop with "W"

[13] 11/19 Moratorium: oustanding assignments not turned in will receive 0

[14] 11/22 Last day to withdraw from the university

11/24-11/26 Thanksgiving holiday for students

[16] 12/10 Last day of classes, Moratorium: oustanding assignments not turned in will receive 0

[17] 12/17 Final exam 8:00 - 10:00am

[18] 12/21 Final grades due

Resources

The programming problems can be completed in two ways. Either an account on our computer science SUN network will give you access to UNIX and the C compiler gcc, or you will need access to a PC a version of ANSI C, the standard version of C.

Assessment

There will be one mid-term test and a final comprehensive examination. There will also be three or four lab. exercises early on in the course, and then five or six programming problems starting out easily and graduating to fairly hard at the end of the course. It may also be necessary to give take-home quizzes for certain parts of the course. The assignment of credit is as follows:

My grading is always flexible, but justice will also be done! ! Late work will be accepted, but will receive a maximum C grade. However, a moratorium date is included in the calendar after which, any work that is due but not handed in will receive a zero. After this date, assignments not handed in by the last day classes will also receive a zero.