Taking community college courses in highschool, will grad school look at it?

I was wondering, I am taking a community college course in high school as a senior. It’s an android course and I was wondering, say I do REALLY bad in the course. Say I get a C, how will that affect me for grad school? I was already accepted to Berkeley and I don’t want my chances ruined for mistakes in high school. I want to attend a top-tier grad school in computer science (possibly Stanford/MIT/Berkeley). I’m not doing terrible in the class, but I have been pretty tensed up thinking about this. Will the grade factor into my UC GPA once I get into berkeley?

PhD program admissions are opaque, holistic, and department-specific, but it is likely that they emphasize upper division courses in your major when looking at your academic record (of course, undergraduate research and resulting recommendations are important as well).

Medical and law schools will include college courses taken while in high school when recalculating your GPA.

UCs calculate your college GPA for their own purposes using only grades from courses taken at UCs. Some departments calculate GPA for the purpose of getting into a capacity-limited major only on the prerequisite courses for the major.

@ucbalumnus

Thank you for the insight. I plan on going to grad school for a masters in EECS, so i’m not going to any med/law school. Do you know whether grad schools (such as stanford/mit/berkeley) look solely on your UC GPA? Or will they combine my UC GPA with my college community courses and take a look at that GPA? Thank you.

C’ in these days mean that the material is really beyond you and you might not learn much, and the colleges won’t look at the course favorably. So if it looks like a C’ by the end of last day to drop for a W’, what would be the point of continuing?