COSC 2P91

Printer-friendly version

COSC 2P91: Procedural Programming
Winter 2012
General Information | Course Outline | Schedule/News | Course Materials | Assignments


General Information

Instructor: Rob Teather
Email: rteather (at) cosc (dot) brocku (dot) ca
Office Hours: Thursdays, ~6 - 7PM (before class) in J304.
Lecture Times: Thursdays, 19:00 - 22:00.
Lecture Location: GL 164

Course TA / Marker: Martin Derka
TA email: md10tq (at) brocku (dot) ca
TA Office Hours: Tuesdays, 15:00 - 16:00 in J214, and Monday 12:00 - 13:00 in J304 (helpdesk).



Course Outline

 

Schedule/News

News:

Feb 4, 2012: Sample timing code posted below. You can use this example to get the time differences in execution time. Note that this sample requires a POSIX-compliant
C library that may not be available on all systems. It is available on Sandcastle however. Use something like this in your assignment to get the elapsed time. Note that simply
using the C time function will not provide millisecond resolution.
Jan 28, 2012:
Linux/Unix reference and tutorial link posted below.
Jan 26, 2012:
Notes for this week posted below.
Jan 24, 2012:
Assignment 1 posted below. It is due Feb. 7.
Jan 23, 2012:
Sample code from class posted below. To compile in ANSI C mode, simply add the flag -ansi to your cc command. Try adding some of the features I mentioned
in class, e.g., declarations after other statements, Java style (//) comments, etc. These should not work in the ANSI standard.
Jan 19, 2012
:
Slides for tonight's class posted below. These slides are from Forouzan & Gilberg. As always, they do not represent the full extent of what will be covered in lecture.
Note also that materials will most likely be presented differently and in more depth than these slides.
Jan 13, 2012:
Note on labs: I forgot to mention this last night, but labs for the course are not mandatory, and the course TA will not be on duty at these times.
If you need lab swipe access, I've posted a link for this below (in the Materials section).
Jan 11, 2012: Course outline posted. Slides for this week posted. Note that these slides do *not* cover everything that will be discussed.
Jan 6, 2012: This website went live. Check back often for updates.
Schedule:
Lectures and labs for the winter term begin Monday January 9th.
First class: Thursday, January 12.
Midterm Test: February 16, 2012 (during class).
Reading week: February 20- 24.
Asgn #1 Due:  February 7.
Asgn #2 Due: February 24.
Asgn #3 Due: March 16.
Asgn #4 Due: April 6.
Final Exam:  TBA by the Office of the Registrar.

Course Materials

Required Text: None.

Recommended/Supplementary:

  • Behrouz A. Forouzan and Richard F. Gilberg. Computer Science: A Structured Programming Approach Using C, 3rd edition. Course Technology 2005. ISBN: 0-534-49132-4.
  • Henri E. Bal, Dick Grune: Programming Language Essentials. Addison-Wesley 1994. ISBN 0-201-631179-2
  • Kenneth C. Louden: Programming Languages: Principles and Practice. Brooks/Cole 1993. ISBN 0-534-93277-0
  • Brian W. Kernighan and Dennis M. Ritchie. The C Programming Language, 2nd Ed. Prentice Hall, 1988. ISBN 0-13-110362-8
  • Various WWW pages – will be linked from main course web page as relevant


Lecture Slides:

Note: The slides that appear here are abridged versions of what will be presented in lecture.

 

Other Material:

Sample Code:

Other links:


Assignments