COS 126

Assignment 0
Programming Assignment

The purpose of this assignment is to introduce you to programming in Java and familiarize you with the mechanics of preparing and submitting assignment solutions. Your goal this week is to learn to use DrJava for editing, compiling, and executing programs.

Hello, World.  The purpose of this step is to set up your computer for developing Java programs.

Programming.  Your job is to write two short programs on your own. We'll assume that you've already created, compiled, and executed by following the instructions in the previous part of the assignment.

Remember that every file you submit needs to have your name, netID and precept number.

Writeup.  With each assignment you must submit a text file named readme.txt that is a narrative description of your work. We provide a readme.txt that you should use as a template. Download this file and answer all questions in the space provided. You will need to read the COS 126 Collaboration Policy in order to answer the related questions in your readme file.

Questionnaire.  Fill out the following brief questionnaire.

Browsing the course website.  The next part of the assignment is to browse the COS 126 website. The address is:
It is essential that you understand what's where and how to get to it.

Submitting the assignment.  The final part of the assignment is to submit,, and readme.txt via the Web submission system (called Dropbox). To do this, click the Assignments link from the course website, click the Submit link for that assignment, and, if you aren't already logged in, login using your OIT NetID and Email password. Upload the required files, and click the Check All Submitted Files button. Your programs should compile without errors or warnings; if not, fix the problem and resubmit the appropriate files.

Getting help. If anything is unclear, don't hesitate to drop by office hours or email us. We also recommend reading the checklist, which provides some clarifications and answers to frequently asked questions.