The first thing you do when you write a program is determine the purpose.