September 15, 2005

 

We talked about Programming Assignment # 2 problems

We looked at solution to Programming Assignment #2

We saw an example of an implied do loop

We looked at integer division in FORTRAN and how to avoid it

We looked at alternative forms of array declarations

 

We looked at the grammar in Example 3.5

We briefly discussed EBNF

 

We started talking about Pascal

 

Pascal information

 

All variables must be declared

Every Pascal program begins with the reserved word program

 

program identifier (output,  input) ;

 

 

begin

 

as long as x has been declared as a variable (or a constant),

write   (x);    is identical to   writeln (output, x);

writeln 

 

 

 

end.