Turning in a homework assignment for CS 123

Your Java source code file should follow a specific format and you will e-mail it 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. After the 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 CS123Ass0Surname (and the name of the file that holds it is CS123Ass0Surname.java). The number between Ass 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 definition there should be a C++ style comment containing the name of the class. 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...
*/
import cs1.*;

public class CS123Ass0Shepherd
{

// your code goes here

}//CS123Ass0Shepherd

E-mailing your assignments.

When you are finished with your assignment, e-mail me your source code. Attach the Java source file to your e-mail message. In the body of the e-mail message put your name, the course number, and the assignment number. The subject of the e-mail message should be the class name of the Java program, i.e., CS123Ass0Surname.

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 both your question and your source code in the body of the mail message. The subject of the e-mail message should be of the form "Question: CS123Ass0Surname".

NOTE: If you are having trouble getting your e-mail client program to make your Java source code file an attachment, use the Purdue Calumet NetMail server to submit your homework. 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 main Java page.
Return to the CS 123 home page.


compliments and criticisms