The only exception to rules 10 and 11 is window controls. Local variables must be declared at the beginning in a declaration section. Initialization of variables must be in an initialization section. Always keep input ahead of processes and process ahead of output. All sections of a method must be identified with a comment.
Examples are declarations, initialization, input, process and output.
Indentation is very important. Each class must be in a separate file. Put ample comments in your source code. A method must have fewer than 50 lines of code.