The typed solution is in the following files
q4.tex(format indicated by extension).
q4.dvi
q4.pdf
q4.ps
The files
foo.incontain the input and output, respectively, of the R batch job that generates the solution.
foo.out
The files
bar.inare for the alternate solution.
bar.out