Warning, anecdotal evidence, but I took CS at CCSF and when asked how to tell if a number was prime in Java, the professor responded "I don't know, google it. There's probably a function that does that."
There are very simple ways to test for primality, but they're... slow. (And at that level, the "in Java" part of the question doesn't make any sense. "What cryptography libraries do you use in Java?" is a perfectly sensible question. "How do you divide numbers in Java?"....)
That's about 32 semester units ($46/unit). An AS typically has a minimum of 60 semester units as a requirement.
Plus, an accredited BS is likely to be better regarded than an AS for many purposes.
So about $2700. But it depends on your income, and most sudents end up paying almost no fees at all thanks to the Governor’s Grant. San Francisco City College is actually completely free for all residents of the city now.
That's because California Community colleges right now draw a huge share of students from the low income (sub-150% of federal povertly line) families that are eligible for the Promise Grant (formerly Board of Governor's Fee Waiver.) But that's not the segment of the potential market that is most likely to be weighing Community College against a $100K 2-year accelerated BS program, most likely.
> San Francisco City College is actually completely free for all residents of the city now.
And that is awesome, but again not relevant to most of the potential market at issue here, I think.