Low GPA, how to raise ?

Hi so I’m going into my second year at a UC that utilizes the quarter system… After getting a D in my summer class, my GPA has dropped to a 2.627 :frowning: I’m wondering how well I have to do to get it back up to at least a 3.0?