Almost failing CSE114 ... what to do now?

Took the first midterm, got a 50 which is about what the average was for that exam. However, now I took the second midterm, where the average was a little higher, a 56. However, now my grade on this exam is a 34.5. Really frantic as to what to do, especially considering that I want to be a CSE major. Is it possible at all to get at least a B- in the class now, with good homeworks and the class project?