Can I still get into UC Berkeley if you have an average first semester of sophomore year?

I started off lazy in my first semester of sophomore year, but I’m pulling up my grades and I’m sure my unweighted academic GPA will be 3.6, while my weighted academic gpa will be 4.2 by the end of the semester. If I do extremely well for the rest of my sophomore year and junior year, and I get good scores on ACT/SAT tests, will I still be able to get into UC Berkeley and major in computer science? I’m a california resident.

bump

Look if you get a 4.0 UW GPA in your junior year with the same amount of classes, technically your UW GPA will be averaged out (between the two years) to around 3.8 which is OK with an upward trend. Combining it with good other stats, you could have a reasonable chance!
So don’t give up yet!