What ideas do you have for solving the problem? List the steps the program should do and then try to write the code for each step.
If you have any specific problems, post them with your code.
...