Flunking a course can put you in a terrible fix.