Lecture 8 Outline (October 12, 2015)
Reading
:
text
§3
Greetings and felicitations!
Homework #2 will be available Wednesday and due October 30
The ECS 30 web hosting system (the system called “nob.cs.ucdavis.edu”) suffered a disk crash and is down. All material has been uploaded to SmartSite.
How to write a program
Program: calculator that does +, −, *, /, %
Take it to design — then modularize
Functions in C
Parameters: pass (or call) by value
Arguments: instantiations of parameters matched in order
Return values
Scope: local variables
switch
statement
Then translate to C
You can also obtain a PDF version of this.
Version of October 13, 2015 at 10:19PM