To get a design for the program, think about how you would do it manually with a piece of paper.
Make a list of the steps you need to do one thing at a time. Put them in the order that they need to...