D Grade Emergency!!

You should retake them. Getting a C or better the 2nd time around will remove the D. Check your CC’s policy.

STEM majors often require courses in series, and sometimes you cannot get all your prereqs done in 2 years.

UCLA has a very low acceptance rate for CS since it’s highly competitive and the GPA percentiles are very high so you should look into TAG at other campuses too.
https://www.admission.ucla.edu/prospect/adm_tr/Tr_Prof15_mjr.htm#SEAS