Umass Amherst vs Uw Madison for Bs in Computer Science

Which is better university for computer Science (BS) - UW Madison or Umass Amherst (with $12000 per year sholarship)?
Is Uw Madison worth the extra cost ?
COA for Uw Madison - $50k
COA for Umass Amherst - $38k