Technical accuracy is critical in programming; but acheiving the goal of a program that works involves more than just sitting down and writing code. It requires a bit of thought, some planning, and an understanding of what you want to accomplish. You'll achieve more, and with less work, if you first plan your program before you start coding. Only after you feel that you know where you wish to go with the program, start typing code into the computer.
Code should be documented with comments. At the beginning of your program you must have at least the following comments:
/************************************************************/
/* Name: John Doe
*/
/* Class: CS 340/840 Numerical Analysis I
*/
/* Computer Assignment 1
*/
/* Due Date: February 3,
2001
*/
/*
*/
/************************************************************/
The code should contain sufficient comments to facilitate reading your program.
How should your program look? What are the standards by which it will be graded? Let's take a look at these issues.