Yes, you can have a program for that, as long as you write it yourself!
When problems exists in writing the code you can ask here. Show what you have done so far, and which error you have, of what chaallenge you need to have solve before getting any further.