Should I attend community college for 2 years then transfer to UC Davis or go to CU Boulder?

How does the cost differential get paid, from your parents’ savings&income, or from loans?