| Date
| Topics
| Slides
| Reading
| Homework
|
| Mon Feb 25
|
|
What is a program?
|
|
Practice Problems
// Halley’s Comment
|
| Wed Feb 27
|
|
|
|
Practice Problems
If it weren’t for C, we’d all be programming in BASI, OBOL, and Pasal.
|
| Fri Mar 1
|
- Discuss HW1
- Bases, numbers, problems in C
- Control Structures: if, switch
- Control Structures are a lot like decision flow charts.
| Control Structures
|
|
HW0 due Sunday noon
Practice Problems
There are 10 types of people in this world: those who understand binary and those who don’t.
|
| Mon Mar 4
|
- Finish if, else, and switch
|
|
|
HW1 due Tuesday noon; late Wednesday noon
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
|
| Wed Mar 6
|
|
|
|
Loops Practice Problems
FoxTrot
|
| Fri Mar 8
|
- C99: mixed declarations & code
- Discuss HW2
- Finish Loops
- Start functions
|
|
|
Functions Practice Problems
Self-Quiz
C is quirky, flawed, and an enormous success. -Dennis Ritchie
|
| Mon Mar 11
|
|
|
C Reference Card
|
HW2 due Tuesday noon; late Wednesday noon
A programmer tells a colleague his wife just had a baby. “Is it a boy or a girl?” “Yes.”
|
| Wed Mar 13
|
- Today is the last withdraw day
- Review HW2
- Quiz #2
- Recursive Functions
- How to program
- Arrays
|
|
|
Practice Problems:
Arrays
More arrays
Self-Quiz
Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.
|
| Fri Mar 15
|
- Discuss HW3
- Finish arrays
- Don’t use
sizeof on an array parameter.
|
|
|
Practice Problems:
Strings
(answers)
As soon as we started programming, we found to our surprise that it
wasn’t as easy to get programs right as we had thought. Debugging had to
be discovered. I can remember the exact instant when I realized that a
large part of my life from then on was going to be spent in finding
mistakes in my own programs.
Maurice Wilkes discovers debugging, 1949
|
| Mon Mar 18
|
Spring Break!
|
| Wed Mar 20
|
| Fri Mar 22
|
| Mon Mar 25
|
|
|
|
HW3 due Tuesday noon; late Wednesday noon
Practice Problems:
File I/O
(answers)
These two strings walk into a bar and sit down. The bartender says, “So what’ll it be?” ''The first string says, “I think I’ll have a beer quag fulk boorg
jdk^CjfdLk jk3s d#f67hw%^U r89nvy~~owmc63^Dz x.xvcu” “Please excuse my friend,” the second string says, “He isn’t null-terminated.”''
|
| Wed Mar 27
|
- Review HW3
- Quiz #3
- Finish Strings
|
|
|
If the odds are a billion-to-one against something happening, it’ll
happen several times per second, on today’s computers.
-Bret McKee
|
| Fri Mar 29
|
- File I/O
- Discuss HW4
i=--i; and a=b++ * b++;
- Program Development using Morse Code:
|
File I/O
|
|
No, syntax isn’t a tax on booze and cigarettes.
|
| Mon Apr 1
|
|
|
| HW4 due Tuesday noon; late Wednesday noon
|
| Wed Apr 3
|
- Review HW4
- Review for exam
- Course evaluation
|
|
|
|
| Fri Apr 5
|
- Final Exam
Photo ID required Questions will come from (or be based on) the quizzes,
the practice problems, and your homework.
|
|
|
|