To add to what Richard has said (and remove this from the unanswered list) ...
Working out how to solve a problem is a big part of the task: it's teaching you "how to think" about a problem - any problem, not just software - in a way that gives you a way to get from "Help!" to "Solved" for yourself. And the methods are exactly the same when faced with a software problem as they are in the real world - and teh chances are that you can already use them without thinking about it!
Have a look here: How to Write Code to Solve a Problem, A Beginner's Guide
It should help you with the next problem!