Dropping a class halfway through the semester?

Are you sure that your grade is a D? There might be a curve. Go talk to the professor and see where you stand.

If you can still drop, do that rather than take the D, but if there is any way to get a C, go for that.