To see the sizes of your files, use the command ls
with the -l flag (long format).
phoenix.Princeton.EDU% ls -l
-rwx------ 1 wayne 6944 Feb 11 13:46 a.out
-rw-r--r-- 1 wayne 134 Feb 10 11:25 input.c
-rw------- 1 wayne 887 Feb 10 11:25 invest.c
-rw------- 1 wayne 680 Feb 10 11:28 pattern.c
-rw------- 1 wayne 4000000 Feb 10 16:42 tooBigToSubmit.ps
-rw------- 1 wayne 17 Feb 10 11:38 readme
In this example input.c is a 134-byte file that was last
modified on February 10. It is world readable, but can only be
modified by the owner wayne. File invest.c
can only be read/written by the owner wayne. File a.out
is an executable file.
To check how much space you've used on arizona (and whether
you're close to the CIT quota) type
phoenix.Princeton.EDU% quota -v
It will give you your usage and quota limit in MB. If you exceed
the limit, you will experience significant problems, so be sure
to delete useless files (especially files named core and
large PostScript files).
Checking your work and hints
|
Use the following submit command:
submit126 4 readme htree.c art.c input.txt
Do not use different file names or capitalization,
even for your artistic creation.
Be sure that your
htree.c reads in the single integer n from stdin.
Be sure that you submitted the companion input file input.txt
for your art.c program.
Your PostScript output must do the following, or you
may receive severe penalties:
view and print properly (with gs and lpr).
If it doesn't, name your C programs
htree-bad.c or art-bad.c so that we do
not waste paper and time trying to print them.
stay within the 512 x 512 box.
be less than 3MB in size.
The readme file should contain the following information.
Here is a
template readme file:
Name, precept number, high level description of code,
any problems encountered, and whatever help
(if any) your received.
Description of your artistic creation and how you
went about creating it.
The extra credit is intended to challenge the more advanced
students, and is strongly recommended for students aiming
for an A or A+ in the course. If you are still struggling with
the basics of recursion, you will probably benefit more
by understanding the recursion examples in the lecture notes
than by attempting the extra credit.
Combine the two main concepts you have been using and
write a recursive PostScript program (not for the
squeamish)! Name your PostScript program extra.ps.
Or "un-recursify" your program. Name your
program extra.c.
Kevin Wayne