Programming Assignment Checklist: Hello World

Questionnaire

Part of this assignment is to fill out the following 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, reference solutions, a readme.txt template, hints, and frequently asked questions.

What preparation do I need to complete this assignment? Read Section 1.1 and Section 1.2.

It's the first week of class. Do I really need to start reading the text? Yes. Getting off to a good start will save you alot of energy in the long run. If you don't understand something, email or visit your preceptor for assistance. Don't be bashful about asking for help.

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

What's the difference between the textbook and the booksite? Reading a book and surfing the web are two different activities: This booksite is intended for your use while online (for example, while programming and while browsing the web); the textbook is for your use when initially learning new material and when reinforcing your understanding of that material (for example, when reviewing to prepare for an exam). Also, some of the booksite is still under construction, so there are gaps.

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

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

The template readme.txt file doesn't view properly in Notepad? Use DrJava instead. Be careful to save the file as readme.txt and not as a Java file. Do not use a word document editor such as Microsoft Word which will save the file in a different format.

What's Moodle? Moodle is the system you will use to submit assignments and check grades.

When I login to Moodle, 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 and check grades with reasonable privacy.

When I submit HelloWorld.java, the system does not seem to check off that I have submitted 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.

How do I use the "Run Script" button? Click it. Note that it activates only after all of the required files have been submitted.

The great circle distance formula seems to lose accuracy when the two points are nearby. Why? The formulas are exact for a sphere. What you are observing is the result of rounding error from computing with floating-point numbers. Stay tuned for the Scientific Computing lecture. Here are some more accurate formulas for computing the great circle distance.

Submission

Submission. All assignments submissions are electronic. Here are some guidelines.

Formatting.

Enrichment

Here's the ACM Hello World Page. It contains everyone's first program in over 200 programming languages.


COS 126 Assignments
Kevin Wayne