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

  1. A more sophisticated Fahrenheit to Celsius temperature converter [fahr2.c]
    1. #include <stdio.h>
    2. Macros
    3. float
    4. for loop

  2. Debugging: find the error! [fahr2-buggy.c]

  3. True and false in C

  4. Relations and conditionals [log.c]
    1. <, <=, >, >=, ==, !=
    2. &&, ||, !

  5. Conditional statements
    1. if [if.c]
    2. if … else
    3. Nested ifs [nestedif.c]
    4. The right way to do this [nestedif2.c]
    5. switch [switch.c]

  6. Loops [for.c]
    1. for loops
    2. while loops
    3. do … while loops

  7. scanf problems [scanf.c]


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming & Problem Solving
Version of April 10, 2024 at 12:22PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh