Lecture 7 Outline (October 9, 2015)
Reading
:
text
§ 3
Greetings and felicitations!
Note that you need not do problem 10391 in Section 5.6 of MyProgrammingLab (question 5 on the homework)
Go through submitting homework
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
Show the program stack and how it relates to functions
switch
statement
Then translate to C
You can also obtain a PDF version of this.
Version of October 8, 2015 at 9:57PM