(Latest Revision: 03/08/2000)
Week 04 Notes for CS 1500 -- Spring 2000
(this is draft material)
* Take roll
* All future assignments will include directions
for subject lines for e-mail messages. Please
be sure to use the exact subject line
specified. Otherwise, sorting e-mail becomes
an onerous task.
* Take a look at new lab assignment
* Take a look at quiz day scheduled.
* Announce that class grades have been posted in
the class web space, keyed by last four digits
of student id number.
* What was the most frequent error in the lab
program? Other problems with how lab was done?
Problems with how first solo program was done?
* Warning: Last day to turn in solo #1 late is
Sunday, March 12. There is a 10% penalty per
calendar day late. Each 10% is worth a full
letter grade.
* Take a look at minor change Solo1 assignment
document: if you have not already turned in
the program, please use the subjects now
specified there.
* Finish up with some stuff from last week: how
the value of an expression depends on operator
precedence.
* Lecture topic: EXAMPLE OF A PROGRAM THAT USES
FUNCTIONS (see the esample
below.)
* Lecture topic: IMPORTANCE OF PRE- AND
POST-CONDITIONS
- Shiflet uses the example of f=abs(x)
- consider the value of pre- and
post-conditions to you as the user of a
function such as "cp"
- then consider that the people who use the
programs you write will be in the same
position.
* Lecture topic: IMPLEMENTATION OF FUNCTION
CALLS (c.f. pp. 855-856)
- This helps explain the effect of a function
call
+ how value parameters are passed
+ why an expression can be used as an
actual parameter
+ understanding the scope of a local
variable.
+ understanding that a called function
cannot change the callers copy of a
parameter passed by value.
+ global variables are special: visible
everywhere except where they are "masked."
* Lecture topic: ADT's AND CLASSES: WHAT ARE
THEY AND WHAT ARE THEY GOOD FOR?
==================================================
FRIDAY
==================================================
* Info about quiz form and questions: There is
a new document in the class web space that
gives you some information on how to study for
the quiz. Have a look -- click on
"studyGuide" at the bottom of the list.
* Something to remember about the lab today:
Refer to the directions in the text and the
online directions. Follow all directions
exactly. If you have questions, ask. Test
your program carefully and check its answers
independently -- make sure it really works
correctly before going on to the next step.