Please explain what the program should do in more detail. What are the inputs? What are the expected outputs? Also, please post whatever work you've done so far. People here will generally try hard to help you to write the code, but they won't write it for you.