Please describe what the program is supposed to do.

Let's start with the error in the code you've posted. This is what I get when I run your code:

An error has occured...