Programming Assignment Checklist: Loops and Arrays


Frequently Asked Questions

What are the goals of this assignment? To write several small Java programs so that you get accustomed to: using conditionals, loops and arrays and to debugging your code.

What preparation do I need before beginning this assignment? Read Sections 1.3 and 1.4 of the textbook. You may also find it instructive to work through some of the other exercises and look at the solutions on the booksite afterwards.

How should I format my Java code? How much do I need to comment my code? Follow the style guidelines. Also, don't forget to put your name, precept, and login in the header of every file.

I have the constants 6, 10, 51, 60, and 61 sprinkled through my TenDice program. Is there a better way? Yes, give your constants meaningful symbolic names, such as SIDES or NUMBER_OF_DICE. This will make your code easier to read, maintain, and debug. Beginning on this assignment, you will lose points for not doing so.

Do I have to use command-line arguments to read the inputs? Yes, or you will lose a substantial number of points.

Submission

Submission. When you submit, be sure to click the Check All Submitted Files button. Make sure that you submitted the right files and that they compile cleanly. You may resubmit a file after making corrections. The dropbox system will always ask you to confirm that you want to overwrite the previously submitted file.

Possible Progress Steps

These are purely suggestions for how you might make progress. You do not have to follow these steps. The key to writing correct programs is to develop them incrementally, testing after each step.

BoyAndGirl.

BoysAndGirls.

Dice and the Gaussian distribution.

Enrichment

Here are some famous and not-so-famous quotations about learning to program.



COS 126 Assignments
Kevin Wayne