Outline for April 4, 2023
Reading: zyBooks text §2.20, 3.1–3.12, 3.16–3.19, 4.1–4.5, 4.9
Due: Homework #1, due April 18, 2024
- A more sophisticated Fahrenheit to Celsius temperature converter [fahr2.c]
- #include <stdio.h>
- Macros
- float
- for loop
- Debugging: find the error! [fahr2-buggy.c]
- True and false in C
- Relations and conditionals [log.c]
- <, <=, >, >=, ==, !=
- &&, ||, !
- Conditional statements
- if [if.c]
- if … else
- Nested ifs [nestedif.c]
- The right way to do this [nestedif2.c]
- switch [switch.c]
- Loops [for.c]
- for loops
- while loops
- do … while loops
- scanf problems [scanf.c]