Costs for accommodation: $8,000 - $14,000 per year. At the lower end, this does not include food, at the higher end it does (or should).
Cost of food: ~$2,000 per year. You can obviously spend much more, particularly if you can go out a lot. You can also get this sum down if you eat very basic foods and never go out and can buy things in bulk. I'm basing this on my own experience - $25-$30 a week for groceries plus another $20 for dinner at a restaurant once a week times 40 (presumably you go home for the summer at least).
Cost of entertainment/clothes/books/etc.: Textbooks will depend on your course, for instance this year mine was zero because all my readings are online but Law students have to buy giant expensive books which go out of date quickly, so that keeps prices quite high. As for the other stuff, it really depends on the person. It also costs money to keep a car on the road or to take a lot of public ransport, so you'd need to factor that in as well.