Assignment 3

Read chapters 3-4 of Das.

Read notes on shell scripts and C program basics.

For programming exercises, submit source files, a shell program that runs the exercises and a Word or HTML document showing "highlighted" source, a transcript showing the results of test cases, and commentary on the results. (See the script command in the man pages). If appropriate, save the output of an exercise as a data file.

  1. Answer the Self-Test questions at the end of the chapters.

  2. Submit written answers to Exercises 3.15 through 3.28.

  3. Explain the function of lines 2 and 3 in the shell script described as first. Show illustrations with and without one or the other of these settings.

  4. Submit written answers to Exercises 4.1 through 4.30.

  5. Write a program to list options and arguments as a tab-delimited list. For example, the command

    myprog -colors red green blue -files file1.txt file2.txt -users Bill Sam Amy Sarah
    

    would produce

    colors\tred\tgreen\blue\n
    files\tfile1.txt\tfile2.txt\n
    users\tBill\tSam\tAmy\Sarah\n
    

  6. Compile the Qt Hello application. Submit a screen capture image showing the application itself.


Maintained by John Loomis, last updated 30 Aug 2006