(Latest Revision: 03/14/2001)
Week 05 Notes for CS 1500, Section 002 -- Spring 2001
CS 1500, Section 002, Monday, March 12, 2001
- Check schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- Results are up for program #1. Some did not turn in the program
yet. Please check the list to see your status and grade.
- Results are up for lab #3. Some were not present to do the lab.
There were a few other problems. yet. Please check the list to
see your status and grade. Let me know after class if you have
questions.
- I posted a study guide for preparing for the quiz on Friday.
-
- Further topics related to function calls -- we can look at
exercises in the quiz review that make some of these points.
- how value parameters are passed
- why an expression can be used as an actual value parameter
- The fact that a variable can be used as an actual parameter when
the name of the variable is not the same as the name of the formal
parameter.
- understanding the scope of a local variable.
- understanding that a called function cannot change the caller's
copy of a parameter passed by value.
- global variables are special: visible everywhere in the file after
where they are declared, except where they are "masked" by a local
variable.
-
CS 1500, Section 002, Wednesday, March 14, 2001
- Check upcoming schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- Please bring a blue book for the quiz on Friday -- the small size.
They are on sale in the book store.
- I will be away on Monday, March 19. The class will get started on
lab assignment #4 in the lab (P-288) on that day. Lab assistant
Ray Williams will be there to answer questions. I will give more
information with the lab #4 directions soon. You will be
finishing up lab #4 over a period of a couple of weeks, and you
will not have to turn anything in related to lab #4 until the week
beginning March 26.
-
- A note about the advantages of working with a partner: One of the good
things about working with a partner is that X can work at the keyboard
while Y checks what X is doing for "sanity." If we ever have a minor
"crisis" in the lab, you may see two of the senior faculty and/or
staff working like this. We do this because it is effective and
necessary. (It's not just because we like each other :-)
- if-else and nesting if-else's. Look at sample
functions. Guess the outputs.
CS 1500, Section 002, Friday, March 16, 2001
- Check schedule
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- Quiz today -- Did you get your small blue book from the book store?
-
-