C++ and Java Code Formatting Guidelines ======================================= 1) Put a blank line between different sections of code 2) Define most variables at the top of your program 3) Put a blank line after your variable declarations 4) Put opening and closing braces on their own lines. 5) Do NOT put a blank line right after an opening brace or right before a closing brace. 6) Make sure the procedure 'main' comes BEFORE all other functions/methods. 7) Start variable and function/method names with lowercase letters. 8) Use "camel case" for variable and function names. 9) Use 3 or 4 spaces (be consistent) for all indents. 10) Indent every line of code inside each set of braces. 11) Indent (further) every line of code inside loops and conditional statements. 12) Put a space after every "if", "for", and "while" statement (before the opening parenthesis). 13) Within each line of code, separate commands, variables, and operators with spaces. 14) When displaying output, capitalize the first letter of sentences and use proper grammar/spelling. 15) When uploading/submitting code, make sure the line spacing is set to SINGLE. 16) When uploading/submitting code, make sure your indents and spacing have not become messed up.