Submitting homework in electronic form
These instructions will be updated as needed. They apply to all
homeworks for which electronic submission will be required, if any. I
tentatively included here instructions about possible Java
assignments (but do not panic, if you do not know Java, you will
not be asked to do such assignments!)
- Do only once, at the beginning of the semester:
- In your hermite account, go into your public_html directory.
Create three directories for homework called Hw1, Hw2 and Hw3. (I
do not think there is ever a chance for more than that!)
- Change the permissions on each of these directories with
"chmod go+rx directoryname."
- Do each time you work on a Java homework
- Each source file should contain a header
(comments at the beginning of the file) with information about:
- Your name.
- Your class account.
- Homework number (e.g. Hw3 part 2).
- A brief description of what the program does and how.
- If you work using Java
on hermite, write and compile your programs in the appropriate
homework directory, but change the permissions to Read-for-everyone
only on the html and class files (not on the java files), while
doing the work. This allows you to view the applet using any browser (in
particular, using the Netscape program running on the local PC where you
do your work).
- If you work using Java (JDK or J++) on a PC, you must be aware that there
is no protection mechanism for your files.
If you store your files on the local C: drive,
you must ftp them elsewhere and remove them from the local disk before
leaving. Otherwise, anybody who uses the machine after you leave can look into
your work. Moreover, your files can be removed by anybody,
so you may not find them later when you return to the same machine.
Using Java locally allows you to view the applet by loading the html
file from Netscape using File/Open File instead of File/Open Location. This
might work faster and be more convenient.
When you are done, you must
ftp the html, java and class files to the appropriate directory on hermite,
and turn the protection bits on, as explained below.
- When your work is finished and you are ready to
submit, you will have to
turn on the read-bit on all the files, so that I can look
into your code when grading. But be aware that so can anybody else!
Therefore, I will ask you to do this last step (chmod go+r *.java) only
after the submission date of the homework.