Can you explain what is not working in your program? Does it compile? Does it execute?
What does it do when it executes?
Have you tried debugging the code by adding print statements to show the...