CS 112
Submitting homework and labs
Java
- Do only once, in the beginning of the semester:
- In your class account, go into your public_html directory.
Create ten directories for homework called Hw1, Hw2, etc.
Do the same for ten labs but name those directories Lab1, Lab2, etc.
Make sure that the names are EXACTLY as specified (first letter
of each directory is capitalized).
- Change the permissions on each of these directories with
chmod go+rx directoryname
- Do each time you work on a Java lab or homework
- Each source file should contain a header
(comments at the beginning of the file) with information about:
- Your name.
- Your class account.
- Homework or lab number (e.g. Hw3 part 2).
- A brief description of what the program does and how.
-
Write and compile your programs in the appropriate
lab or 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 browser 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 transfer 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 in Explorer using File/Open File instead of File/Open Location. This
might work faster and be more convenient.
When you are done, you must transfer the html, java and class files to the
appropriate directory on the server,
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 the TAs and 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
on Thursday, after the submission date of the homework,
in the beginning of the class.
- For the homework, what not to do after the submission
time (Wednesday midnight), if
you want to receive full credit for having submitted your work in time:
- Do not edit the html file.
- Do not edit or recompile the java files.
- Do not change the permissions to the html and class files.
C++
TBA