By typing them in at the keyboard. Are you expecting us to actually give you the answer to your homework? That's not the way it works here - you try something and, if it doesn't work, you post a section of relevant code and we help you sort that out. We don't help you cheat.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington