First off, please use highlight tags when posting code to preserve formatting.

Secondly, I recommend you start by reading this: Starting Writing a Program