Regarding living costs I would say I need around 500-600€ each month including rent. If you wanna study in one of the bigger cities you probably have to add another 200€ onto this.
Thank you so much
1. I guess the living standard in dorms really depends on the city. And even where I live the standard is very diverse between the different dorms. Also the rent mainly depends on the city. I would suggest to get in touch with the university of your choice and ask those specific questions regarding the living situation there.
2. How much you can earn is also really specific. I guess you can expect a pretty good hourly fee as long as you can find a employer who speaks english. I have no idea how the market for english speaking programmers is. Your best shot is probably to work as a freelancer over the web.