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
Reading/writing/appending files
Reading, writing text files [
printfile1.c
,
printfile2.c
,
printfile3.c
,
printfile4.c
,
printfile5.c
]
Other useful file functions
Reading, writing binary files [
scopy.c
,
sbcopy.c
]
Writing a Program
Step 1. Goal and general algorithm
Step 2. Data representation and program structure
Step 3. Translate these into C statements
Step 4. Turn this into a program
Step 5. Add error checking
Step 6. User interface
Other enhancements
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.