Total newbie

But how do I get from writing the code to compiling and downloading it to the Arduino?

You click on the icon second to the left on the top of the arduino IDE window.