Here is a Perceptron Class I made in C#. The Form code has the example on how to use it. The output goes to a text file in the Debug directory showing you the errors for each iteration. It's not a complicated example so you won't get that much error. If you run it a couple times you might see an error quickly go to 0. (If you missed or lucked out, there is an entry in my journal on the Perceptron Neural Net). Anyway, you must sign here:
--------------------------
And agree to pay me a one time fee of 0.000001 US dollars to use it. Please use a permanent magic marker (or don't if you don't want to mess up your monitor).