Lecture 11 – October 2,
2007
- You will have a
program due to be electronically submitted next Monday night by
11:59pm. If after submitting it
you discover that you have forgotten to submit part of it, you need to
send me an e-mail asking me to clear your submission so you can re-submit
it with everything required in it.
Please do NOT send me e-mail attachments of what you neglected to
submit. They will be deleted.
- You will have an exam
in the not too distant future. You
should have learned much more than to write simple FORTRAN and Pascal
programs. In class we looked at the
beginning of a detailed outline of items which have been covered in the
process of talking about FORTRAN, Pascal, Alice and mini-language Core. We went over a few items on the list
expanding them but not necessarily completing the expansion. The list for each section has been
posted under assignment Review1 on Blackboard. You should download the document and
complete as much of the outline as you can before class on Wednesday and
submit it. Be sure you use the
outline for your section. This will
be graded so do as much as you can.
- We started to expand
the outline for Chapter 5 in the 12:30 section but did not get to it in
the 2:00pm section. Below you will
find as far as we got in the 12:30 section. All of you should copy it and as you
read chapter 5, expand and complete it.
- A link to the
textbook slides for Chapter 5 is available on the Web page.
- We also looked at two
different Pascal programs illustrating the declaration and use of Pascal
pointers. Variations of those
programs are posted on the webpage and you should play with pointers as
soon as possible.
- Graded assignment
“Things to Verify” was handed back in the 2:00pm section. Work from the 12:30pm section can be
found outside my door. Note that
the total possible points was 25 not 50 as was originally shown on
Blackboard. You earned 3 points
for a correct answer; less for one that was only partially correct or
wrong. I expected to see the code
if you discovered something by experimentation .
NOTE: when you submit electronic copies of Word
documents, be sure they are saved in Word97-2003 format so that I can read them
in my office and on my home machine.
(initial
outline for Chapter 5 can be found below)
Chapter 5
is
really about variables and constants
Indentifiers
(variables and constants and subprogram names)
- Names
- Case
sensitive
- Reserved
words
- What
does first character have to be?
- Do
names implicitly identify types?
- What
characters can be used in names?
- What
is the maximum length ?
-
- Variable
- What
is it?
- What
are its attributes
- Bindings
-
- type
checking
-
- scope