Ryerson University
Department of Computer Science

CPS125 � Digital Computation and Programming
Course Outline and Course Management Form (Winter 2010)

Professors

Dr. Maryam Davoudpour
Office: ENG241

mdavoud@scs.ryerson.ca

Dr. Cherie Ding
Office: ENG258
cding@cs.ryerson.ca

Bart Gajderowicz
Office: TBA
bgajdero@ryerson.ca

Dr. Denis Hamelin
Office: ENG276
dhamelin@cs.ryerson.ca

Dr. Joshua Panar
Office: ENG259

jpanar@cs.ryerson.ca

Dr. Marcus Santos
Office: ENG263

m3santos@cs.ryerson.ca

Dr. Hamid Timorabadi
Office: TBA
hamid@ele.utoronto.ca

Dr. Isaac Woungang
Office: ENG282

iwoungan@cs.ryerson.ca



Course Description:
Digital Computation and Programming. The C programming language is used to develop good programming techniques. Topics covered include: C program form, language statements, pseudo-code algorithmic representation, numeric data types, flow of control with selection and repetition, standard C libraries, functions and call modes, arrays, pointers, sorting, matrix operations, character and string data types, dynamic storage, structures and linked lists, file I/O. Only regular first year students from the Faculty of Engineering and Applied Science may preregister for this course.

Course Format:
3 weekly lecture hours and 2 weekly lab hours.

Course Websites:
The official course website (
www.courseweb.ca/cps125) and your professor's website for specific section information. (must be consulted at least once a week) .
The example programs website can be found at c.ihypress.ca.

Course Texts:
�Hanly, J. R. & Koffman, E. B. (2010),
Problem Solving and Program Design in C � Custom Edition for Ryerson University, Boston: Pearson Custom Publishing. [mandatory]
�CPS125 Lab Manual (http://www.cs.ryerson.ca/dhamelin/cps125/labs/manual.html).

Optional lab references:
�Academic Computing Services (2004),
User's Guide to Academic Computing and the Internet, Toronto: Ryerson University Bookstore. Also available on line
�If your lab uses the facilities of the Department of Computer Science (ENG Building), you will need the User Guide to DCS Facilities.

Schedule of activities

(the material may not necessarily be covered in the exact order given)

Week #
(Dates)

Contents / Topics

Format

Readings in
Text Book

Example Programs to Review

Labs, tests and assignments

1
(Jan 6-12)

Course introduction. Computer and computing fundamentals: History of computing, computer architecture, networks, software engineering, programming languages.

Lecture

Chapter 1


NO LAB THIS WEEK

2
(Jan 13-19)

Introduction to C: Basic structure, comments, formatting output, escape sequences, debugging.

Lecture
Lab

Chapter 2
(2.1, 2.2, 2.3 2.4, 2.6)

Section 01
(all programs)

NO LAB THIS WEEK

3
(Jan 20-26)

Variables, arithmetic operations, math functions and I/O: Identifier names, constant macros, arithmetic operators and expressions, evaluating expressions, type casting, reading data from the keyboard, reading data from a file, math functions, writing output to a file.

Lecture
Lab

Chapter 2
(2.5, 2.7, 2.8)

Chapter 3
(3.1, 3.2)

Chapter 7
(7.1, 7.2)

Section 02
(all programs)


LAB #1
LAB START ON JAN. 20

4
(Jan 27-Feb 2)

Decision Making (Selection): Logical expressions, if statement, switch statement.

Lecture
Lab

Chapter 4

Section 03
(all programs)

LAB #2

5
(Feb 3-9)

Loops I: Theoretical kinds of loops (counting loops, sentinel loops, EOF loops, input validation loops, general loops). C statements implementing counting loops.

Lecture
Lab
Midterm Test

Chapter 5
(5.1 to 5.3)

Section 04
(1 to 5)

LAB #3
TERM TEST #1 (FEB. 5)

6
(Feb 10-23)

Loops II: C statements implementing advanced loops. Nested loops. Practical applications.

Lecture
Lab

Chapter 5
(5.4 to 5.11)

Section 04
(6 to 10)

LAB #4
ASSIGNMENT #1

7
(Feb 24-Mar 2)

Functions I: Concepts. Defining functions. Calling functions. Scope of names. Function with value arguments (no arguments/no result, 1 argument/no result, 2 or more arguments/no result, no arguments/1 result, 1 argument/1 result, 2 or more arguments/1 result). Number-Order-Types of arguments/parameters pairs. Case studies.

Lecture
Lab

Chapter 3
(3.3 to 3.6)

Section 05
(all programs)

LAB #5
ASSIGNMENT #1 DUE

8
(Mar 3-9)

Functions II: Pointers. Using pointer parameters to simulate multiple results from a function.

Lecture
Lab
Midterm Test

Chapter 6

Section 06
(all programs)

NO LAB THIS WEEK
TERM TEST #2 (MAR. 5)

9
(Mar 10-16)

Arrays I: Numerical arrays of one dimension. Passing such arrays to functions (pointers and arrays). Dynamic allocation of 1D numerical arrays.

Lecture
Lab

Chapter 8
(8.1 to 8.6)

Section 07
(all programs)

LAB #6
ASSIGNMENT #2

10
(Mar 17-23)

Arrays II: Strings. Passing strings to functions (pointers and arrays). Dynamic allocation of strings. String functions (string.h). Character functions (ctype.h). Arrays of strings (Introduction to 2D arrays).

Lecture
Lab

Chapter 9

Section 08
(all programs)

LAB #7
ASSIGNMENT #2 DUE

11
(Mar 24-30)

Arrays III: Multidimensional arrays. Passing such arrays to functions (pointers and arrays). Dynamic allocation of 2D arrays. Case studies.

Lecture
Lab

Chapter 8
(8.7 to 8.9)

Section 09
(all programs)

LAB #8

12
(Mar 31-Apr 6)

Structures: The typedef construct. Operations on structures. Structures and functions. Pointers on structures (arrow operator).

Lecture
Lab

Chapter 11
(11.1 to 11.5)

Section 10
(1 and 2)

LAB #9
ASSIGNMENT #3

13
(Apr 7-13)

Advanced topics: Binary files. Command line arguments. Course review. Review exercises.

Lecture

Chapter 12

Section 12
(all programs)

LAB #10
ASSIGNMENT #3 DUE

 

 

 

 


 


Evaluation:

Tests and exams (75%)

Term Test #1 (15%)
Term Test #2 (20%)
Final Examination (40%)

Labs and assignments (25%)

Labs (10%)
Assignment #1 (5%)
Assignment #2 (5%)
Assignment #3 (5%)


Important notice: In order to pass the course, it is necessary to obtain 50% of the tests and examination marks and 50% of the total marks. In other words, your labs and assignments will not count if you don't have the required minimum 50% (37.5/75) on tests and exams.

General Information:
The term tests and final exam will consist mainly of writing C functions and programs. There may also be questions related to specifying the exact output produced by the execution of a given program, finding errors in a program, writing or choosing appropriate C statements or filling the blanks in an incomplete program.
All tests must be written in pen, not pencil (unless specified otherwise in the test announcement on the course website).

The labs will be graded based upon attendance and your ability to demonstrate an understanding of the problem and the relevant C language material. You may be asked to demonstrate your preparation for the lab, asked questions in the lab or asked to hand in the product of the lab. Attendance for the entire lab period (2 hours) is required to avoid being marked absent. Also, engaging in any activity other than the one prescribed in the lab manual will give you an absentee status (a zero mark) for that lab. Again, lab attendance and work is *mandatory*. If you get three or more labs with a zero mark, you will get an F grade. If you do have a valid reason to miss a lab (approved by the FYCEO), you will make arrangements with your lab assistant to submit your lab by email. Email submissions will not be accepted under any other circumstance.


Assignments consist of designing, writing and testing a program to solve a given problem. Assignments and labs are to be done individually, and are marked based on correctness of results, quality of documentation, style and layout. Assignments and lab programs must contain the following comment: /* This program is my own individual work */. Copied work (both copy and original) will be given a grade of zero. Involvement with plagiarism can ultimately result in course failure and/or expulsion from the University in accordance with the Ryerson Student Conduct Code. If you are found guilty of academic misconduct the minimum penalty you will receive is a mark of zero on the test, exam, paper, project or assignment in question and the notation �Disciplinary Notice (DN)� will be placed on your academic record and official transcript where it will remain for eight years.

Late assignments will not be accepted for marking. Assignments must be submitted in the format detailed in class, and are to be submitted as directed by your professor. Assignments submitted in any other fashion are deemed void.

It is important to know your CPS125 section number. Marks will be lost on any evaluation missing proper identification, i.e. Family/Last Name, Given/First Name, Section Number and Student Identification Number (only if specifically requested).

Again, a reminder that in order to pass the course, it is necessary to obtain 50% of the (tests + examination) marks
and 50% of the total marks and having attended 8 labs or more.

Students are responsible for logging on to the course website regularly, and for following all course related instructions so transmitted.
Students should also check their email (the ryerson.ca email as per academic policy) daily for any notices from the professors and are responsible for following any directives so sent.

As course topics typically develop based on material from previous lectures, students are strongly urged to attend ALL classes. If you miss any material due to illness or other unavoidable circumstance be sure to catch up before the next class.

Grades on assignments, tests and labs will be available on the Blackboard/RAMSS system or other means specified by your professor. As per Ryerson regulation, final exam marks and grades will be disclosed only by the registrar's office.

A faculty course survey will be filled by the students during week 11.

Rules and regulations:
The rules and regulations are for the enjoyment and respect of everyone in the class including yourself. Thank you very much for abiding by them:

Please refrain of talking during the lecture. Everybody needs to hear correctly. If you feel the urge to talk, you are invited to step out of the classroom.

Please shut down you cell phone or put it in vibrating mode during the lecture. If you are expecting an important call, and do not have a vibrating function, please answer it immediately and step out of the classroom to talk.

Please arrive on time, class will promptly begin at :10. If you arrive late or have to leave early, please do so quietly and be nice and close the door behind you if it doesn't close automatically.

Please be reminded that the Graduate Assistants (GAs) have the authority of the professor in the lab sessions. You are to treat the GAs with respect.

Emails to your professor should always begin with a greeting (Dear Dr. X, Dear Professor Y) and be written in proper English (no chat room lingo please). Your should also always indicate your name (family, given in that order), course (CPS125) and section number in all communications. You must always use your ryerson.ca email to communicate with your professor. Messages sent from other addresses (gmail, hotmail, ...) or missing proper identification as noted just above likely will not be read.

Changes:
Modifications to the course procedures will be made in consultation with the students and will be announced on the course website.