Project 2 Extra Notes

  1. Pay attention to the coding standard, which boils down to (1) code formatting and (2) documentation.
  2. Pay attention to output formatting. Make sure you:
    1. Output a newline after each input prompt (for the reasons described in the notes file)
    2. Echo print your input (or include it with the output for your calculations)
    3. Use concise, descriptive labels (not excessively long).
    4. Specify units
    5. Set decimal precision
    6. Add space between labels and values, and in between blocks
    7. Align values in a column to make them easy to read (see example below).

Ex. Column Alignment

cout << endl
  << "Label 1:        " << value1 << endl
  << "Label 2 (long): " << value2 << endl;

Last updated 1/23/13