Lecture 8 – September 22, 2005

 

We went over Homework 3

 

We announced  Dec. 15 from 4-6pm as the tentative final exam time

Final exam – both sections -  Tuesday, December 13, 20057:00 to 9:00 pm  in ISAT/CS 236

 

We looked at an ideal example of the Pascal program from Homework 4 showing the desired type of comments and we

talked about it.    Adamssolution

 

We then looked at a series of programs illustrating

          array type and array variable declarations & the difference between a named array type and an anonymous array type

          what happens when array bounds are exceeded

             

                            array1   array2  array3   

 

maximum size of an integer in this version of Pascal

          the difference between printing the result of a computation and storing it

 

                         numbersize1  numbersize2  numbersize3  numbersize4

                  

          the declaration and use of enumerated types

                   the ord   and succ functions

                   how a for loop functions

 

                        enumerated1    enumerated2  enumerated3  enumerated4    enumerated5    enumerated6

             

          the form of functions and procedures and parameter passing

 

                      subprograms1