CIS105 Fall 2003 H03

Assignment 2.17 in Deitel, with the following notes:
  1. The output of your program should look like this:
    1 2 3 4

  2. The assignment asks you to write the program three different ways. Call your three files by the names h03a.c, h03b.c, h03c.c.
  3. Before submitting this to WebCT, prepare a script file in which you take each program, one at a time, list it out, compile it, and then run it. For example, the steps in your script file for the first program are:
    cat h03a.c
    cc h03a.c
    ./a.out
    
  4. When you upload, upload four files in all: each of the C source code files, and your script file.
  5. Grading: Each of the programs is worth 20 points. Correctly scripting is worth another 40 points for 100 points in all.

Phillip T Conrad
Last modified: Sun Oct 19 19:07:23 EDT 2003