How to recover from a bad semester?

How can you get a D in general chemistry?