Lecture 8 Outline (October 12, 2015)

Reading: text §3

  1. Greetings and felicitations!
    1. Homework #2 will be available Wednesday and due October 30
    2. 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.
  2. How to write a program
    1. Program: calculator that does +, −, *, /, %
    2. Take it to design — then modularize
  3. Functions in C
    1. Parameters: pass (or call) by value
    2. Arguments: instantiations of parameters matched in order
    3. Return values
    4. Scope: local variables
  4. switch statement
  5. Then translate to C


You can also obtain a PDF version of this. Version of October 13, 2015 at 10:19PM