i'm in the same deilma, I'm currently taking a computer architectures class, and i get all 100's on the homeworks, and I do very well on the design projects. But on the midterms I DID HORRIABLE!
like really bad. First exam grade was a 47, next one was a 33. But the class average on the first one was a 70 and the class average on the 2nd was a 40. So the average of both exams comes out to ~ 55%.
My current average on exams is: ~40% each mid term is worth 20% of my grade. The final is going to be 25% of my grade, and the rest is all in homeworks and projects which I'm doing well in.
15% of my grade is homeworks, which i have a 100%
and
20% of my grade is projects, which I have 95% in, and only 1 more project left and I believe I'll also do well in that one.
I also need a C or higher in this class, but I have faith in myself! hah i hope. I also have faith in other people screwing up just as bad as me.
So if you have been doing poorly on everything, including exams, I would drop it, if you do well on other things but do bad on the exams I would say keep it because the professor will see that you understand the material, you just suck at his exams (if he's nice and you do semi well on the final then I wouldn't drop it).