This. I did this accidentally - that is, I didn't move to a new place, because my state already had a system that works really well for this.
The Virginia state schools are very inexpensive for the quality, and I did two years in the community college system and then transferred to James Madison with guaranteed admission (because of agreements between the state universities and the community college). JMU wasn't a noteworthy CS school at the time, but I also had the option to head to Virginia Tech or University of Virginia, both of which have great programs (JMU offered a minor in music business, which is what made my decision).
Tuition was <$4k/semester for residents at the time (class of 2011).