Project 2 Extra Notes
- Pay attention to the coding standard, which boils down to (1) code
formatting and (2) documentation.
- See the C++
Coding Style Guide for examples.
- Try to group your calculations in such a way that you can easily
write one comment that describes several calculations.
- Pay attention to output formatting. Make sure you:
- Output a newline after each input prompt (for the reasons described
in the notes file)
- Echo print your input (or include it with the output for your
calculations)
- Use concise, descriptive labels (not excessively long).
- You can omit things like "the measure of"
- Specify units
- Set decimal precision
- Add space between labels and values, and in between blocks
- 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