Comments on First FORTRAN program
Note: your gradesheet you may have a digit which refers to comments below
1. output description vague or incomplete (-2)
2. purpose not 100% accurate (-2)
3. input description vague or incomplete (-2)
4. Using A(*) in subroutine or function dimension (-5)
a. this was not a feature discussed in class
5. Missing carriage control in output statement (-1 each (max -5))
a. (1x, F4.2) or (‘ here is the array’)
6. No folder cover (-5)
7. sum initialized to 0 instead of 0.0 (-1)
8. Swap parameter types incorrect (-5)
a. formal and actual should match
9. missing statement saying ‘program has ended’ (-5)
10. using reals as subscripts (-1 each (max -5))
11. using reals in do loops unless deliberate (-1 each (max -5))
12. inadequate # of decimal places in average (-2)
13. excessive # of decimal places in average (-1)
14. unnecessary initialization (-1 each (max -5))
15. a counter should have an integer name or be (-1 each (max -5))
declared as an integer
16. vague prompt (-1)
17. looping through the array 500 times is silly (-1)
18. I believe that you are exceeding the array bounds (-3)
which FORTRAN doesn’t catch
19. It is silly to write the same code multiple times.
a. that’s what subroutines and functions are for
b. parameters adjust for size differences and
name differences
20.The comments in your program were to be about
the FORTRAN language not just about what the
program is doing (-5)
21. You have a variable that is declared but not used (-1 each (max -5))
a. it may be a parameter you don’t use
22.It is important to avoid spelling errors. They
make a bad impression (-1 each 3 errors)
23.Sorting in descending order doesn’t
meet specs (-2 each one)
24.Unnecessary declaration (-1 each (max -5))
25. Requiring input that doesn’t match specs (-10)