Outline for April 25, 2025

Outline for April 25, 2025

Reading: zyBooks text §9.1, 9.4; handout Writing a Program
Due: Homework #2, due April 30, 2024


  1. Reading/writing/appending files
    1. Reading, writing text files [printfile1.c, printfile2.c, printfile3.c, printfile4.c, printfile5.c]
    2. Other useful file functions
    3. Reading, writing binary files [scopy.c, sbcopy.c]

  2. Writing a Program
    1. Step 1. Goal and general algorithm
    2. Step 2. Data representation and program structure
    3. Step 3. Translate these into C statements
    4. Step 4. Turn this into a program
    5. Step 5. Add error checking
    6. Step 6. User interface
    7. Other enhancements

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 24, 2025 at 2:27PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh