If you want to write a program then you should know what the steps are.