Day 3
- Reading: Read through Chapter 4 by next Tuesday
- Project 1 due Friday at midnight
- Follow instructions very carefully (e.g. get_dimes(286) => 1)
- Reference executable is available here
- Formatting matters, comments matter, the file name matters
- Lab 2 due today
- Lecture Topics
- Style Guidelines
- input/output
- printf: %d for int, %f for double, %c for char
- scanf: %d for int, %lf for double (that is the letter 'l' not the number '1'), %c for char
- see examples: i.c and o.c
- control structures
- if/then/else (e.g. lastName begins with 'J', temperature is above 100)
- compound statements/blocks use braces
- conditions
- relational and equality operators: <, >, <=, >=, ==, !=