My faith is gone.
Did other people in the class have this problem? What did they do differently from you?
Rather than railing at the failures of this teacher, maybe you should think about finding ways to succeed.
Really? Or was it maybe because she had specified a way to submit assignments, and you didn't follow instructions? Many CS teachers use automated assignment graders, and it's quite possible that she didn't feel like massaging your submission into a form that would pass the grader. Unfair? Maybe. Understandable? Definitely.