CSCI 2610/2611
Fall 2004

Last modified 12/10/04

Announcements

The final exam will be Monday, December 13 from 7:30pm to 9:30pm.


Syllabus

This is a computer programming course using C++. See the syllabus for details.


Office hours

MW4:30-5:45, TTh11:00-12:15


Lab and help hours

Lab assistants are available during certain hours for assistance. See the following pages.


Assignments

  1. Programming assignment 1
  2. Programming assignment 2
  3. Programming assignment 3
  4. Programming assignment 4
  5. Programming assignment 5
  6. Programming assignment 6
  7. Programming assignment 7
  8. Programming assignment 8
  9. Programming assignment 9


Self-test exercises

You should make a habit of working most of the self-test exercises in the book, and checking your answer against the answer in the book. That will help you remember the material. Additional exercises will be posted here.

  1. Practice questions for quiz 1
  2. Solutions to practice questions for quiz 1
  3. Practice questions for quiz 2
  4. Solutions to practice questions for quiz 2
  5. Practice questions for quiz 3
  6. Solutions to practice questions for quiz 3
  7. Practice questions for quiz 4
  8. Solutions to practice questions for quiz 4


Additional documents


Sample C++ programs

The following are sample C++ programs with some commentary.


Lecture summaries

  1. [8/25/04] We went over the syllabus and the course objectives. We discussed grading of programming assignments and (briefly) how to use the Unix operating system and how to compile and run programs.

  2. [8/30/04] We did a rapid tour through some of the basic ideas of C++, including elementary types, variables, assignment statements, expressions, operators, if statements, while loops and elementary function structure.

  3. [9/1/04] We briefly discussed indentation and straight-line code. Then we began looking at loops. We saw to loop design strategies. One is to think in terms of the action that you want to perform over and over. The second is to think in terms of the values that you want to compute, and let the actions follow from that. We looked at simple examples, including summing numbers and computing powers.

  4. [9/6/04] Holiday.

  5. [9/8/04] We looked more at designing, including nested loops. Then we turned to basics of functions.

  6. [9/13/04] We continued looking at functions, including parameter passing and function contracts.

  7. [9/15/04] We looked at using recursion as an alternative to loops. We did examples of recursion.

  8. [9/20/04] We continued to look at functions, including functions with void return type and call by reference. Then we began to look at arrays.

  9. [9/22/04] Quiz 1. After the quiz, we continued to look at arrays.

  10. [9/27/04] We did examples involving arrays, and introduced arrays of characters and the null character as a terminator.