Tutorial Notes/Outlines for CSC270, Fall 2001 (evening section)


Material seen in Tutorial 6: list operations.

Tutorial 8: Inheritance in C++.

Tutorial 7: Mostly C++ examples illustrating simulation. To prepare the tutorial, please go over the gas station program at the end of the csc270 readings on simulation. Spend time understanding that program, its components, how it is related to the material about simulation covered in the readings. So you have to read the Molle notes in the Readings to be able to fully grasp the program. Also, go slowly and try to follow this pattern:

-- Read the Molle notes, learning what simulation is.
-- Briefly recall the notions of C++ covered in the program.
-- Go over the program itself by relating its main components and datastructures to the concepts in the Molle notes. A C++ version -- courtesy of Jim Clarke -- can be found at the following link.

Tutorial 6: List processing in C: What are linked lists? How are implemented using pointers? How to insert (delete) elements into (from) a linked list? how to traverse it? etc.

Tutorial 5: Invigilating the midterm.

Tutorial 4: Go over the notion of "double precision floating-point arithmetic" as opposed to "single precision floating-point arithmetic". Do so by examples of single and double precision FP arithmetic. Section 4.2.1 - 4.2.3 in D. Knuth, The art of Computer Algorithms, Vol 2 (Semi-numerical algorithms) can be consulted for material for this tutorial. It's important to go over a complete example of addition and multiplication for both single and double precision FPA.

Tutorial 3: Go over Chapter 5 in K&R's book (5.1 - 5.7, 5.11-5.12), or equivalently Chapter 12 in King's book. Notice that some stuff found in K&R is not in the corresponding chapter in King's book. I particulary stress K&R 5.11-5.12.

The material on pointers has been carefully chosen as I realized that you have LOTS of difficulties grasping pointers in C.

Tutorial 2: Hhhmm ....

Tutorial 1: Pay attention at the difference between Java, that you are supposed to know at this point in your curriculum, and C.