Turning in a homework assignment for CS 123

Your Java source code files should follow a specific format and you will submit them to me in a specific way. These rules make it easier for me to automate the collecting and compiling of your homework assignments, so it is important that you follow them carefully.

Format for your Java files.

At the very beginning of your source file there should be a C-style comment containing the course number, your name, and the assignment number. An example below shows exactly how you are to format this. After this comment are your import statements (if you need any). After any import statements is the beginning of the class definition. I want you to follow a very strict rule for naming your class. The name of your Java class should be of the form CS123Hw0Surname (and the name of the file that holds it is CS123Hw0Surname.java). The number between Hw and Surname is the number of the homework assignment. And Surname is of course your last name. If your surname has more than one part, concatenate the parts together so that the class name does not have any spaces in it. Right after the closing brace of the class (or method) definition there should be a C++ style comment containing the name of the class (or method).

Here is a template of how your .java file should look.
/*
   Course: CS 123
   Name: Jean Shepherd
   Assignment: 0

   Any other comments that you want to make...
*/

public class CS123Hw0Shepherd
{
   public static void main( String[] args )
   {
      // put code here

   }//main()
}//CS123Hw0Shepherd

Later in the semester, your solution for an assignment will probably make use of a few source files. In that case, what I want you to turn in to me is a zip file containing all of the source files for your solution. The name of your zip file should be of the form CS123Hw0Surname.zip.

Submitting your assignments.

When you are finished with your assignment, submit your source code using the Blackboard "Assignments" tool for this course. When you are on the "Edit Submission" page for an assignment, click on the "Add Attachments" button. In the popup window, click on the "My Computer" icon, which brings up a Windows file chooser dialog. Use the dialog box to navigate to your assignment that you want to submit. After you click on the "Open" button from this dialog box, you will be back to the Blackboard "Edit Submission" page. Click on the "Submit" button at the bottom of this page. After you have submitted an assignment, it will move from your "In" box to your "Submitted" box. If you should need to re-submit the assignment, you can move the assignment back to your "In" box.

If your assignment is not finished but you want to send it to me in order to ask a question about it, then use the following procedure. Put your question and your source code in the body of an e-mail message (or attach a zip file to the message). The subject of the e-mail message should be of the form "Question: CS123Hw0Surname".

NOTE: If you have trouble getting your e-mail client program to make your Java source code file (or a zip file) an attachment, use the Purdue Calumet NetMail server to submit your questions. The attachment feature works properly. You will need to know your username and password to use this e-mail program.


Return to the Homework page.
Return to the CS 123 home page.


compliments and criticisms