Talk about program 2 and problems observed thus far.
Don’t turn in earlier work
|
Specification says numbers must be integers. It does not say they must be positive integers |
|
The program specification says it should handle 3 numbers. It does not imply a loop is needed. |
|
Double sided tape to hold label to disk isn’t a good idea |
|
Introduction is too short - doesn’t completely describe work of program |
|
Output is not spaced properly |
|
Sorted data is not in descending order |
|
Program shouldn’t bomb on erroneous data – it should end gracefully |
|
Program has no introduction to user |
|
Output is unlabeled |
|
Not conforming to the specifications – (i.e requiring spaces between numbers or 0 to quit) |
|
Inadequate commenting |
|
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