Homework 5. Stat 540.
Task. Perl: Clean up master-mind to look pretty and save
information. (In particular, make it as easy to use as possible. For
example, you should be able to see your past guesses when you are
making your current guesses.)
Task. Familiarize yourself with R.
How?
- Identify online resources related to R. Add to your web page.
- Read a set of commands from an input file and have R excecute them (use the source command).
- Write output from R to a file (use the sink command).
- Make sure you fire up R from a Perl script and read in an input file of R commands.
- Consider how you might make your output from R more
"WEB" readable.
Essentially, most R objects have a "print" method.
For each object we care about returning to the user we will need to write
a print.html method, which will output in a format suitable for reading
over the WEB.
Task. Familiarize yourself with gnuplot.
- start with "man gnuplot" and then use "help" inside gnuplot
- Plot a few obvious functions
- Plot x sin(1/x) for x between -1 and 1. Try to control the plotting so that the graph looks correct.
- Plot a dataset
- Label the graph with a caption and label the axis