CSCI 3294 (Seminar: UNIX Power Tools), Fall 2016:
Homework 7

Credit:
50 points.

Reading

Be sure you have read, or at least skimmed, the readings for 10/17 and 10/12.

Honor Code Statement

Please include with each part of the assignment the Honor Code pledge or just the word ``pledged'', plus one or more of the following about collaboration and help (as many as apply).1Text in italics is explanatory or something for you to fill in. For written assignments, it should go right after your name and the assignment number; for programming assignments, it should go in comments at the start of your program.

Programming Problems

(This isn't exactly a programming problem, but I want your source files by e-mail so I can confirm that they can be turned into the formatted document on a semi-standard Linux system. So follow the standard instructions below, except interpret ``program source'' as ``LaTeX and other source'' and ``programs'' as ``document'', and send me files in e-mail as described below.)

Do the following programming problems. You will end up with at least one code file per problem. Submit your program source (and any other needed files) by sending mail to bmassing@cs.trinity.edu with each file as an attachment. Please use a subject line that mentions the course and the assignment (e.g., ``csci 3294 hw 7'' or ``UNIX hw 7''). You can develop your programs on any system that provides the needed functionality, but I will test them on one of the department's Linux machines, so you should probably make sure they work in that environment before turning them in.

For this assignment your mission is to create a LaTeX document (using the article class) that includes examples of a number of features. You will also use gnuplot to create at least two plots to be incorporated into your document and write a simple biblography file to be processed by BibTeX.

  1. (5 points) Overall, your document should contain the following:

    Your document can also include anything else you think is interesting or might be fun to try to figure out how to do. An obvious possibility is one or more figures drawn using one of LaTeX's picture-drawing environments. (If you decide to try TikZ, you should be able to find a manual for it online.)

  2. (10 points) The ``Basics'' section should include the following:

  3. (10 points) The ``Figures and tables'' section should include the following:

  4. (15 points) Use gnuplot to create at least two plots, one plotting one or more formulas and one plotting data.

    It's up to you what to plot, but if nothing more interesting occurs to you:

    For the formulas you could do the kind of plot I often use in class to illustrate order of magnitude of functions, showing a few $ O(N^2)$ and $ O(N^3)$ functions (at least two of each) and specifying the x-range (starting at 0 and going up to whatever will make the plot meaningful).

    For the data you could do a bar chart using output of this simple C program2 rands.c that generates ``random'' data. (To compile it you'll need -std=c99. The compiled program takes two command-line arguments, a seed value and a count.)

  5. (10 points) Create a bibliography using BibTeX, containing at least two different kinds of references. Simplest to do are probably books and Web sites, but if you've ever included other references in a bibliography for another course (e.g., a journal article), try including one of those as well. For books you could just pick one or more of the textbooks you're using this semester, and for Web sites -- well, you could use the one for this course or anything that appeals to you.

On all of the above, I will give extra points for anything that seems to go well beyond the minimum requirements.

If you find parts or all of this assignment very easy because you've used LaTeX before, try to go beyond what you've done previously.

You're welcome to copy text from any of the examples on the class ``sample programs'' page, as long as you understand reasonably well what the copied lines do.

Turn in (by e-mail):

(Note: In class I may have mentioned that there are several IDE-like environments for LaTeX. For this assignment, however, I recommend that you not use one of them; I think you will learn more by writing the LaTeX source with a simple text editor.)



Footnotes

... apply).1
Credit where credit is due: I based the wording of this list on a posting to a SIGCSE mailing list. SIGCSE is the ACM's Special Interest Group on CS Education.
... program2
Why a C program? well, it was quick and easy to adapt one I had written for CSCI 1120.


Berna Massingill
2016-11-22