The final exam will be Monday, December 13 from 7:30pm to 9:30pm. |
This is a computer programming course using C++. See the syllabus for details.
MW4:30-5:45, TTh11:00-12:15
Lab assistants are available during certain hours for assistance. See the following pages.
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.
The following are sample C++ programs with some commentary.
[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.
[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.
[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.
[9/6/04] Holiday.
[9/8/04] We looked more at designing, including nested loops. Then we turned to basics of functions.
[9/13/04] We continued looking at functions, including parameter passing and function contracts.
[9/15/04] We looked at using recursion as an alternative to loops. We did examples of recursion.
[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/22/04] Quiz 1. After the quiz, we continued to look at arrays.
[9/27/04] We did examples involving arrays, and introduced arrays of characters and the null character as a terminator.