Lecture notes for the Introduction to Computer Science I by James Tam Return to the course web page

CPSC 231: Fall 2010 Tutorial Schedule

Week No.

Days

Topics to be covered

1 September 12 - 18
No tutorials this week

2

September 19 - 25
Tutorial exercises commence this week! (It's a graded component)
  • Introduction to the Computer Science network
  • Creating programs with a text editor
  • Creating and running Python programs
  • Python: text output and input
  • Python: Variables
  • Python: Documenting programs
  • Academic misconduct vs. collaboration
  • Tutorial exercise 1 to be completed this week

3

September 26 - October 2
  • Downloading and setting up the Quickdraw graphical library.
  • How to get your Python programs to communicate to Quickdraw (via a subprocess)
  • Drawing primitive shapes (physical properties: size and layout)
  • The Red-Blue-Green (RGB) color model and how to change colors in Quickdraw
  • Discussion of A1.
  • Second tutorial exercise to be completed this week.
  • Tutorial exercise 2 to be completed this week

4

October 3 - 9
  • Review of programming style requirements for assignments.
  • Formatting String  and other output ("The practice of Computing using Python" section 4.4)
  • Commonly used UNIX commands.
  • (If there is time): using the SSH file transfer program. [More information]
  • Tutorial exercise 3 to be completed this week

5

October 10 - 16 First tutorial:
  • No tutorials on Monday because of the Thanksgiving Holiday, Tuesday tutorials are canceled.
  • There is no tutorial exercise due this week, it will be due next week.
Second tutorial:
  • Calling pre-created Python functions
  • Defining and calling your own functions
  • Using functions in conjunction with QuickDraw

6

October 17 - 23
  • Branching constructs: if, if-else, if-elif
  • Tutorial exercise 4 to be completed this week

7

October 24 - 30
  • Recursion
  • Animations in QuickDraw
  • Functions with return values
  • Scope: local vs. global
  • Tutorial exercise 5 to be completed this week
8 October 31 - November 6
Tutorial exercise 6 to be completed this week
9 November 7 - 13
  • QuickDraw events (needed for A4 and Tutorial exercise 7 so don't skip out because the QuickDraw documentation on this is rather sparse).
  • Strings and string operations.
10 November 14 - 20
  • Testing functions
  • Brief introduction into using Exceptions to handle errors
  • An introduction into encoding PPM image information (if there is time)
  • Tutorial exercise 7 to be completed this week
11 November 21 - 27
First tutorial
  • Introduction to 2D lists
  • Tutorial exercise 8 and the starting code that you are provided.
Second tutorial
  • Description of A5
  • Demos for this week's tutorial exercise.
Tutorial exercise 8 to be completed this week
12 November 28 - December 4
  • File input and output
  • Modules: dividing program statements between different files.
  • Tutorial exercise 9 to be completed this week
13 December 5 - 11
  • Review of classes and objects: defining a class, creating an instance of a class, using the different parts, putting the definition of a class into it's own module.
  • Contrasting classes vs. objects, procedural vs. the Object-Oriented approach.
  • Testing classes.
  • Tutorial exercise 10 to be completed this week