CS 1073 Exercises

[Home] [Assignments] [Slides] [syllabus].

These are some exercises that can help you learn programming.

  1. Exercises given on 09/29/09, covering loops and continuing series.
    1. every3.f90
    2. sumloop.f90
    3. series.f90
  2. Exercises given on 10/08/09, covering I/O and continuing series.
    1. printline.f90
    2. series3.f90
  3. Exercise done in class on 10/29/09 right after Exam #2.
    1. prod4.f90
  4. Set of exercises involving arrays.
    1. arrayasg.f90
    2. arraysum.f90
    3. arrayprod.f90
    4. arraymin.f90
    5. arraymax.f90 (using logical loop)
    6. series_arr.f90
    7. vecgen.f90 (write randomly generated 1-D matrix to file)
    8. vecsort.f90 (sort vector from file)
    9. vecthresh.f90 (copy between arrays if below threshhold)
    A set of exercises involving subroutines and functions.
    1. func2f.f90
    2. Array intrinsics as 1-D vector functions:
      1. funsum.f90
    3. ,
    4. Read/Write vector to files using functions and subroutines
    5. Sort a vector from/to files using a subroutine to sort
    6. Sort and copy a vector using a subroutine
    7. copy 2-D array using a subroutine


[Home] [Assignments] [Slides] [syllabus].