Programming Assignment Checklist: Hello World

Questionnaire

Did you remember to fill out the brief questionnaire?

Goals

Regardless of the operating system that you choose, the goal of Assignment 0 is to make sure that you can:

Frequently Asked Questions

What's a checklist? The programming assignment specifies the general programming assignment. The checklist contains supplemental information, and you are expected to read it prior to submitting your work. Some examples include: links to any preliminary code, a readme.txt template, hints, and frequently asked questions.

What preparation do I need to complete this assignment? Read Section 1.1 and 1.2 of the textbook. If you don't understand something, email or visit your preceptor for assistance. Don't be bashful about asking for help.

Can I use the booksite instead of the textbook? No, the booksite is a super-condensed version of the textbook; it is suitable for reference while online (for example, while programming). The textbook is intended for use when initially learning new material and when reinforcing your understanding of that material (for example, when reviewing for an exam).

How can I download a program from the textbook? The corresponding section in the booksite contains links to all of the Java programs in the textbook. The link goes to a .java.html file (such as UseArgument.java.html) that is suitable for display in a browser. You can cut-and-paste the code into DrJava as needed. The .java.html file also contains a link to the .java file (such as UseArgument.java); you can right click this link and save the file to your computer.

I don't understand all of the jargon in HelloWorld.java. Should I drop the course? Don't worry—we'll explain this in the first or second precept. Do the readings and bring any lingering questions to precept.

Do I have to use DrJava? No, feel free to use any development environment you like.

How do I open the plain text file, readme.txt? What program should I use to edit the readme.txt file? It is an amazing fact that .txt files are not consistently formatted in modern systems. If you want to be sure that we can read your .txt files (and we think that you do!) please use DrJava, as follows:

The readme.txt file must be a plain text file—Microsoft Word .doc or .docx formats and Mac TextEdit .rtf formats are unacceptable.

How should I read in user input? Use command-line arguments as specified in the assignment and described in Section 1.2 of the textbook. You will receive a significant deduction for not following directions. We will learn about more general ways to handle user input in Section 1.5.

What's Dropbox? Dropbox is a system that we developed for submitting assignments here in the CS department at Princeton. We do not use Blackboard for this purpose in this course. Our Dropbox is not be be mistaken for the cloud file-sharing system that has become prominent on the web in recent years.

When I login to Dropbox, my browser asks me whether I should accept a "security certificate." How should I proceed? Accept it permanently. We need to establish a secure connection so that you can submit assignments with reasonable privacy.

When I submit HelloWorld.java, Dropbox does not seem to accept it. Why not? Be sure the file is named HelloWorld.java. The capitalization and .java extension are important. Also, be aware that DrJava creates backup files with a .java~ extension, so be sure that you don't submit these. If you use Windows, we recommend configuring your system to unhide the filetype extensions.

Submission

Submission. All assignments submissions are electronic, using Dropbox. We do not accept email or hardcopy submissions. Here are some guidelines.

Formatting.

Enrichment

Here is Hello World in over 200 different programming languages.