
Homework submission guidelines
All of the assignments that we give you will have the following information at the top:
the name of the folder you should create for this assignment, the names of the files that you should submit,
and the command that you will use to submit the assignments. Please make sure that you pay attention to these
when you are doing your assignments.
- When you begin your programming assignment, create a folder to store your code in. This folder should be
named pa#, and stored in a folder called cs11a. For example: pa0
- Each question on the homework will have its own file. These should be named
pa#_q#.c and use only lowercase letters. Example: pa1_q1.c
- Please note: it is very important that you follow these naming conventions.
Because the class is so large we are trying to streamline the grading process as much as possible,
but by giving different names to your programs than directed it will take longer to grade your code,
and could result in point deductions.
- You may write the code for your homeworks on your own computer, or log in to the CS computers
to do it. If you decide to do it on your own computer, when you are finished you
must transfer your homework folder with all the files in it to your account on the CS computers.
If you are unsure how to do that, please check the instructions here
if you are on Windows or here if you are on Mac/Unix.
-
Once you have transferred your files, you are strongly encouraged to make sure that your programs run
on the CS computers. Just because a program works on your own computer does not mean that it has to work
on ours, but it will be graded on ours. It is not common for there to be that type of problem, but it
can happen, and it is your responsibility to check.
-
When you are ready to submit your homework (check the instructions at the bottom of the page to make sure
your code has everything required), move to your cs11a directory, and put in the following command:
- /usr/local/bin/cs11a_submit_pa#
Note: programming assignments 0-9 will have a leading 0 (zero) in the command to submit them
Example: /usr/local/bin/cs11a_submit_pa00, /usr/local/bin/cs11a_submit_pa01, etc
All assignments after pa9 will just be:
/usr/local/bin/cs11a_submit_pa10, /usr/local/bin/cs11a_submit_pa99, etc (just kidding about pa99!)
If you find that you made a mistake on your homework, you will be able to resubmit your assignment
by running the same command again at any time.
How to format your source code
Always include the following information in the comments at the beginning of all your source code.
- Your name.
- The date and the homework number.
- What the program is designed to do, and what it actually does. This is the only way that
you will be able to receive partial credit for programs that compile and run but contain logical errors.
Here is an example template for the required comments in your program.
Use this template as a guideline.
Also, comment other parts of your source code for clarity.