After an undergrad degree in mathematics, I am doing a PhD in theoretical computer science. To satisfy my PhD program’s requirements, I'm taking a very challenging coding class this semester. I know how to code, but this course is more like a systems programming class and not something I'm used to. However, I have been doing all the assignments of the class.
The professor is quite a tough grader, willing to give a 0 in the whole assignment for compilation errors. Although the average of the class is quite low, I have been performing way below the average (typically in the last 15%) in every single assignment and exam. The professor has said that every one of our assignments/exams are graded under a curve, so our absolute grade doesn't matter that much, but only our relative position in the class.
Since I'm performing way below the average (despite putting a lot of effort) I'm worried that I won't be able to get the minimum grade required by my program (B), or even worse maybe I won't even pass the class.
The final and all assignments are all over and I should expect my grade in the next week. How could I talk to the professor and tell him that I put a lot on effort in his class, but due to my lack of programming experience my performance was way below the average of the class?
Update: I just received my grade and it was a B. I wasn't that far from the average as I thought (the final exam also saved me). Grade cutoffs were pretty low. I didn't contact the Professor as suggested.