Talk about program 2 and problems observed thus far.      

Don’t turn in earlier work

   

 

  1.  

Specification says numbers must be integers. It does not say they must be positive integers

  1.  

The program specification says it should handle 3 numbers.  It does not imply a loop is needed.

  1.  

Double sided tape to hold label to disk isn’t a good idea

  1.  

Introduction is  too short - doesn’t completely describe work of program

  1.  

Output is not spaced properly

  1.  

Sorted data is not in descending order

  1.  

Program shouldn’t bomb on erroneous data – it should end gracefully

  1.  

Program has no introduction to user

  1.  

Output is unlabeled

  1.  

Not conforming to the specifications – (i.e requiring spaces between numbers or 0 to quit)

  1.  

Inadequate commenting

  1.  

Intro doesn’t describe expected format of input – which is important

 

What else did you need to know that wasn’t specified...

·        When you pass an array into a subprogram, you need to specify

 the array size in each subprogram

·        FORTRAN has no “default” global variables – variables in a COMMON area have global access (i.e. can be accessible in subprograms)

·        Where do you put the subprograms?  - subprograms had to be in the same file.

·        Label references in a sub program must exist in that subprogram.

·        FORTRAN declares arrays using a DIMENSION statement

·        You can not have a STOP statement in a subprogram

·        Your program should check the input data using a statement similar to

READ (5,6, END = 23, ERR = 42) NUMBER

 

Talk about mini-language CORE

 

Point out programming assignment 3 making sure that everyone uses standard program name...  P3FORTRAN.exe